mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
- Initialize login->id and fix problem for non-zero login id.
- Increase maxopenings for multiple lun/initiators. MFC after: 3 days
This commit is contained in:
parent
ce52e8f411
commit
c6cf3e202a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=169475
@ -1226,6 +1226,7 @@ sbp_targ_get_login(struct sbp_targ_softc *sc, struct fw_device *fwdev, int lun)
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
login->id = i;
|
||||
login->fwdev = fwdev;
|
||||
login->lstate = lstate;
|
||||
login->last_hi = 0xffff;
|
||||
@ -1619,7 +1620,7 @@ sbp_targ_attach(device_t dev)
|
||||
sc->fd.post_explore = (void *) sbp_targ_post_explore;
|
||||
sc->fd.post_busreset = (void *) sbp_targ_post_busreset;
|
||||
|
||||
devq = cam_simq_alloc(/*maxopenings*/1);
|
||||
devq = cam_simq_alloc(/*maxopenings*/MAX_LUN*MAX_INITIATORS);
|
||||
if (devq == NULL)
|
||||
return (ENXIO);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user