- 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:
Hidetoshi Shimokawa 2007-05-11 14:51:13 +00:00
parent ce52e8f411
commit c6cf3e202a

View File

@ -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);