summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorsimokawa <simokawa@FreeBSD.org>2007-05-11 14:51:13 +0000
committersimokawa <simokawa@FreeBSD.org>2007-05-11 14:51:13 +0000
commit50e0c5dd7bbfcd740f73fcaf750532dcac27f579 (patch)
tree7e5f7dd23cac285ef87dab41d4bfcc8740c60f2a /sys/dev
parentf1c1aa5c905e5caa61868c0c4adad2c01e5269c5 (diff)
downloadFreeBSD-src-50e0c5dd7bbfcd740f73fcaf750532dcac27f579.zip
FreeBSD-src-50e0c5dd7bbfcd740f73fcaf750532dcac27f579.tar.gz
- Initialize login->id and fix problem for non-zero login id.
- Increase maxopenings for multiple lun/initiators. MFC after: 3 days
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/firewire/sbp_targ.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/firewire/sbp_targ.c b/sys/dev/firewire/sbp_targ.c
index 35d8e3e..ef14efc 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);
OpenPOWER on IntegriCloud