diff options
author | Christoph Hellwig <hch@lst.de> | 2014-09-30 16:43:46 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-10-01 13:14:03 +0200 |
commit | 24c20f10583647e30afe87b6f6d5e14bc7b1cbc6 (patch) | |
tree | eb63f3704d2a362ec36860a2f77111aeac215ce0 /drivers/scsi/scsi.c | |
parent | 8e4a5da69c39788fabc9e7cf178eb62b6077c96b (diff) | |
download | linux-24c20f10583647e30afe87b6f6d5e14bc7b1cbc6.tar.gz linux-24c20f10583647e30afe87b6f6d5e14bc7b1cbc6.tar.bz2 linux-24c20f10583647e30afe87b6f6d5e14bc7b1cbc6.zip |
scsi: add a CONFIG_SCSI_MQ_DEFAULT option
Add a Kconfig option to enable the blk-mq path for SCSI by default
to ease testing and deployment in setups that know they benefit
from blk-mq.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Robert Elliott <elliott@hp.com>
Tested-by: Robert Elliott <elliott@hp.com>
Diffstat (limited to 'drivers/scsi/scsi.c')
-rw-r--r-- | drivers/scsi/scsi.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c index 1423cb17fbfd..79c77b485a67 100644 --- a/drivers/scsi/scsi.c +++ b/drivers/scsi/scsi.c @@ -1367,7 +1367,11 @@ MODULE_LICENSE("GPL"); module_param(scsi_logging_level, int, S_IRUGO|S_IWUSR); MODULE_PARM_DESC(scsi_logging_level, "a bit mask of logging levels"); +#ifdef CONFIG_SCSI_MQ_DEFAULT +bool scsi_use_blk_mq = true; +#else bool scsi_use_blk_mq = false; +#endif module_param_named(use_blk_mq, scsi_use_blk_mq, bool, S_IWUSR | S_IRUGO); static int __init init_scsi(void) |