aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/fcoe
diff options
context:
space:
mode:
authorVasu Dev <vasu.dev@intel.com>2009-10-15 20:46:55 -0400
committerJames Bottomley <James.Bottomley@suse.de>2009-12-04 13:00:43 -0500
commit14caf44c69184ed72d46a2f883311daf27a4192f (patch)
treecdfdf95ea884116de6595cc8d89482b89ba8ccaa /drivers/scsi/fcoe
parent5c20848a096fb1880ded99816be79d78ca1cd696 (diff)
[SCSI] fcoe, libfc: fix an libfc issue with queue ramp down in libfc
The cmd_per_lun value is used by scsi-ml as fall back lowest queue_depth value but in case of libfc cmd_per_lun is set to same value as max queue_depth = 32. So this patch reduces cmd_per_lun value to 3 and configures each lun with default max queue_depth 32 in fc_slave_alloc. Signed-off-by: Vasu Dev <vasu.dev@intel.com> Acked-by: Robert Love <robert.w.love@intel.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/fcoe')
-rw-r--r--drivers/scsi/fcoe/fcoe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c
index aef29afb6e71..4efbc17a7d7f 100644
--- a/drivers/scsi/fcoe/fcoe.c
+++ b/drivers/scsi/fcoe/fcoe.c
@@ -137,7 +137,7 @@ static struct scsi_host_template fcoe_shost_template = {
137 .change_queue_depth = fc_change_queue_depth, 137 .change_queue_depth = fc_change_queue_depth,
138 .change_queue_type = fc_change_queue_type, 138 .change_queue_type = fc_change_queue_type,
139 .this_id = -1, 139 .this_id = -1,
140 .cmd_per_lun = 32, 140 .cmd_per_lun = 3,
141 .can_queue = FCOE_MAX_OUTSTANDING_COMMANDS, 141 .can_queue = FCOE_MAX_OUTSTANDING_COMMANDS,
142 .use_clustering = ENABLE_CLUSTERING, 142 .use_clustering = ENABLE_CLUSTERING,
143 .sg_tablesize = SG_ALL, 143 .sg_tablesize = SG_ALL,