aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bnx2i
diff options
context:
space:
mode:
authorEddie Wai <eddie.wai@broadcom.com>2012-04-25 18:03:45 -0400
committerJames Bottomley <JBottomley@Parallels.com>2012-05-10 04:03:18 -0400
commit6f9c04ff778e35aaad11266b55ef93f72224586e (patch)
treefb3b99ee9bd93aab33cfb1b0d469906df0921bad /drivers/scsi/bnx2i
parent99c72ebceb4dda445b4b74c6f46035feec95a2b3 (diff)
[SCSI] bnx2i: Added the setting of target can_queue via target_alloc
This will set the target can_queue limit to the number of preallocated session tasks set during creation. "Could not send nopout" messages were observed without this when the iSCSI connection experiences dropped frames under heavy I/O stress. Signed-off-by: Eddie Wai <eddie.wai@broadcom.com> Reviewed-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/bnx2i')
-rw-r--r--drivers/scsi/bnx2i/bnx2i_iscsi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/bnx2i/bnx2i_iscsi.c b/drivers/scsi/bnx2i/bnx2i_iscsi.c
index 1a44b45e7be..e4029327f21 100644
--- a/drivers/scsi/bnx2i/bnx2i_iscsi.c
+++ b/drivers/scsi/bnx2i/bnx2i_iscsi.c
@@ -2244,6 +2244,7 @@ static struct scsi_host_template bnx2i_host_template = {
2244 .eh_device_reset_handler = iscsi_eh_device_reset, 2244 .eh_device_reset_handler = iscsi_eh_device_reset,
2245 .eh_target_reset_handler = iscsi_eh_recover_target, 2245 .eh_target_reset_handler = iscsi_eh_recover_target,
2246 .change_queue_depth = iscsi_change_queue_depth, 2246 .change_queue_depth = iscsi_change_queue_depth,
2247 .target_alloc = iscsi_target_alloc,
2247 .can_queue = 2048, 2248 .can_queue = 2048,
2248 .max_sectors = 127, 2249 .max_sectors = 127,
2249 .cmd_per_lun = 128, 2250 .cmd_per_lun = 128,