aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/scsi/scsi_host.h
diff options
context:
space:
mode:
authorMing Lei <ming.lei@redhat.com>2018-03-13 17:42:41 +0800
committerMartin K. Petersen <martin.petersen@oracle.com>2018-03-14 23:31:13 -0400
commit2f31115e940c4afd49b99c33123534e2ac924ffb (patch)
tree34813dcad7d2ab489a0f3e02b15f852c6182f09d /include/scsi/scsi_host.h
parentscsi: megaraid_sas: fix selection of reply queue (diff)
downloadwireguard-linux-2f31115e940c4afd49b99c33123534e2ac924ffb.tar.xz
wireguard-linux-2f31115e940c4afd49b99c33123534e2ac924ffb.zip
scsi: core: introduce force_blk_mq
This patch introduces 'force_blk_mq' to the scsi_host_template so that drivers that have no desire to support the legacy I/O path can signal blk-mq only support. [mkp: commit desc] Cc: Omar Sandoval <osandov@fb.com>, Cc: "Martin K. Petersen" <martin.petersen@oracle.com>, Cc: James Bottomley <james.bottomley@hansenpartnership.com>, Cc: Christoph Hellwig <hch@lst.de>, Cc: Don Brace <don.brace@microsemi.com> Cc: Kashyap Desai <kashyap.desai@broadcom.com> Cc: Mike Snitzer <snitzer@redhat.com> Cc: Laurence Oberman <loberman@redhat.com> Signed-off-by: Ming Lei <ming.lei@redhat.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include/scsi/scsi_host.h')
-rw-r--r--include/scsi/scsi_host.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/scsi/scsi_host.h b/include/scsi/scsi_host.h
index a8b7bf879ced..9c1e4bad6581 100644
--- a/include/scsi/scsi_host.h
+++ b/include/scsi/scsi_host.h
@@ -452,6 +452,9 @@ struct scsi_host_template {
/* True if the controller does not support WRITE SAME */
unsigned no_write_same:1;
+ /* True if the low-level driver supports blk-mq only */
+ unsigned force_blk_mq:1;
+
/*
* Countdown for host blocking with no commands outstanding.
*/