diff options
author | Hidetoshi Shimokawa <simokawa@FreeBSD.org> | 2007-05-11 14:51:13 +0000 |
---|---|---|
committer | Hidetoshi Shimokawa <simokawa@FreeBSD.org> | 2007-05-11 14:51:13 +0000 |
commit | c6cf3e202a37061660a7547651f3119706686f22 (patch) | |
tree | 7e5f7dd23cac285ef87dab41d4bfcc8740c60f2a /sys/dev/firewire | |
parent | ce52e8f41110d6d2d36afda78f870c780ac3790e (diff) | |
download | src-c6cf3e202a37061660a7547651f3119706686f22.tar.gz src-c6cf3e202a37061660a7547651f3119706686f22.zip |
- Initialize login->id and fix problem for non-zero login id.
- Increase maxopenings for multiple lun/initiators.
MFC after: 3 days
Notes
Notes:
svn path=/head/; revision=169475
Diffstat (limited to 'sys/dev/firewire')
-rw-r--r-- | sys/dev/firewire/sbp_targ.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/firewire/sbp_targ.c b/sys/dev/firewire/sbp_targ.c index 35d8e3ed2aca..ef14efca1c9b 100644 --- a/sys/dev/firewire/sbp_targ.c +++ b/sys/dev/firewire/sbp_targ.c @@ -1226,6 +1226,7 @@ found: 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); |