scsi: remove the disable_blk_mq host flag
authorChristoph Hellwig <hch@lst.de>
Wed, 13 Jul 2016 04:19:05 +0000 (13:19 +0900)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 15 Jul 2016 19:11:20 +0000 (15:11 -0400)
We've had scsi-mq for 2.5 years now, so we can remove the unused flag to
disable the code on a per-host basis that was put in for unexpected
emergencies during bringup.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hosts.c
drivers/scsi/scsi.c
include/scsi/scsi_host.h

index 1547bd93c70bb7450dc368ff53c54688677245cb..ba9af4a2bd2ab3159ed415b5acc73328925aa3c3 100644 (file)
@@ -486,8 +486,6 @@ struct Scsi_Host *scsi_host_alloc(struct scsi_host_template *sht, int privsize)
        else
                shost->dma_boundary = 0xffffffff;
 
-       shost->use_blk_mq = scsi_use_blk_mq && !shost->hostt->disable_blk_mq;
-
        device_initialize(&shost->shost_gendev);
        dev_set_name(&shost->shost_gendev, "host%d", shost->host_no);
        shost->shost_gendev.bus = &scsi_bus_type;
index 1deb6adc411f795833a444a84b1e80e9f9629c4d..1f36aca44394eaf49a8edc0ce78d6db371288cc8 100644 (file)
@@ -1160,6 +1160,7 @@ bool scsi_use_blk_mq = true;
 bool scsi_use_blk_mq = false;
 #endif
 module_param_named(use_blk_mq, scsi_use_blk_mq, bool, S_IWUSR | S_IRUGO);
+EXPORT_SYMBOL_GPL(scsi_use_blk_mq);
 
 static int __init init_scsi(void)
 {
index 76e9d278c3341bf95e1399090b1c4e268abab1a0..0dee7afa93d6621881b2f6a4afb6828a4b5f8d63 100644 (file)
@@ -495,9 +495,6 @@ struct scsi_host_template {
         */
        unsigned int cmd_size;
        struct scsi_host_cmd_pool *cmd_pool;
-
-       /* temporary flag to disable blk-mq I/O path */
-       bool disable_blk_mq;
 };
 
 /*
@@ -778,7 +775,8 @@ extern bool scsi_use_blk_mq;
 
 static inline bool shost_use_blk_mq(struct Scsi_Host *shost)
 {
-       return shost->use_blk_mq;
+       return scsi_use_blk_mq;
+
 }
 
 extern int scsi_queue_work(struct Scsi_Host *, struct work_struct *);