aboutsummaryrefslogtreecommitdiffstats
path: root/include/scsi
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 /include/scsi
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 'include/scsi')
-rw-r--r--include/scsi/scsi_host.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/scsi/scsi_host.h b/include/scsi/scsi_host.h
index 5e362489ee88..bb9e27815be5 100644
--- a/include/scsi/scsi_host.h
+++ b/include/scsi/scsi_host.h
@@ -638,6 +638,14 @@ struct Scsi_Host {
638 short unsigned int sg_prot_tablesize; 638 short unsigned int sg_prot_tablesize;
639 unsigned int max_sectors; 639 unsigned int max_sectors;
640 unsigned long dma_boundary; 640 unsigned long dma_boundary;
641 /*
642 * In scsi-mq mode, the number of hardware queues supported by the LLD.
643 *
644 * Note: it is assumed that each hardware queue has a queue depth of
645 * can_queue. In other words, the total queue depth per host
646 * is nr_hw_queues * can_queue.
647 */
648 unsigned nr_hw_queues;
641 /* 649 /*
642 * Used to assign serial numbers to the cmds. 650 * Used to assign serial numbers to the cmds.
643 * Protected by the host lock. 651 * Protected by the host lock.