aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_lib.c
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2014-10-30 09:45:36 -0400
committerChristoph Hellwig <hch@lst.de>2014-11-12 05:16:09 -0500
commitefec4b90f1a9b4c80827e4b8c0863334e13b0bf1 (patch)
treefef1e42abeb10ae721e59c6da163a1bfe8b2ad60 /drivers/scsi/scsi_lib.c
parent205fb5f5ba1d8edcf18009998ed05b80b7d186af (diff)
scsi: add support for multiple hardware queues
Allow a SCSI LLD to declare how many hardware queues it supports by setting Scsi_Host.nr_hw_queues before calling scsi_add_host(). Signed-off-by: Bart Van Assche <bvanassche@acm.org> Reviewed-by: Sagi Grimberg <sagig@mellanox.com> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/scsi_lib.c')
-rw-r--r--drivers/scsi/scsi_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
index fc0a8a0c0a34..38f8c85957b6 100644
--- a/drivers/scsi/scsi_lib.c
+++ b/drivers/scsi/scsi_lib.c
@@ -2106,7 +2106,7 @@ int scsi_mq_setup_tags(struct Scsi_Host *shost)
2106 2106
2107 memset(&shost->tag_set, 0, sizeof(shost->tag_set)); 2107 memset(&shost->tag_set, 0, sizeof(shost->tag_set));
2108 shost->tag_set.ops = &scsi_mq_ops; 2108 shost->tag_set.ops = &scsi_mq_ops;
2109 shost->tag_set.nr_hw_queues = 1; 2109 shost->tag_set.nr_hw_queues = shost->nr_hw_queues ? : 1;
2110 shost->tag_set.queue_depth = shost->can_queue; 2110 shost->tag_set.queue_depth = shost->can_queue;
2111 shost->tag_set.cmd_size = cmd_size; 2111 shost->tag_set.cmd_size = cmd_size;
2112 shost->tag_set.numa_node = NUMA_NO_NODE; 2112 shost->tag_set.numa_node = NUMA_NO_NODE;