aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/Kconfig11
-rw-r--r--drivers/scsi/scsi.c4
2 files changed, 15 insertions, 0 deletions
diff --git a/drivers/scsi/Kconfig b/drivers/scsi/Kconfig
index 18a3358eb1d4..71b0877245cb 100644
--- a/drivers/scsi/Kconfig
+++ b/drivers/scsi/Kconfig
@@ -45,6 +45,17 @@ config SCSI_NETLINK
45 default n 45 default n
46 select NET 46 select NET
47 47
48config SCSI_MQ_DEFAULT
49 bool "SCSI: use blk-mq I/O path by default"
50 depends on SCSI
51 ---help---
52 This option enables the new blk-mq based I/O path for SCSI
53 devices by default. With the option the scsi_mod.use_blk_mq
54 module/boot option defaults to Y, without it to N, but it can
55 still be overriden either way.
56
57 If unsure say N.
58
48config SCSI_PROC_FS 59config SCSI_PROC_FS
49 bool "legacy /proc/scsi/ support" 60 bool "legacy /proc/scsi/ support"
50 depends on SCSI && PROC_FS 61 depends on SCSI && PROC_FS
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");
1367module_param(scsi_logging_level, int, S_IRUGO|S_IWUSR); 1367module_param(scsi_logging_level, int, S_IRUGO|S_IWUSR);
1368MODULE_PARM_DESC(scsi_logging_level, "a bit mask of logging levels"); 1368MODULE_PARM_DESC(scsi_logging_level, "a bit mask of logging levels");
1369 1369
1370#ifdef CONFIG_SCSI_MQ_DEFAULT
1371bool scsi_use_blk_mq = true;
1372#else
1370bool scsi_use_blk_mq = false; 1373bool scsi_use_blk_mq = false;
1374#endif
1371module_param_named(use_blk_mq, scsi_use_blk_mq, bool, S_IWUSR | S_IRUGO); 1375module_param_named(use_blk_mq, scsi_use_blk_mq, bool, S_IWUSR | S_IRUGO);
1372 1376
1373static int __init init_scsi(void) 1377static int __init init_scsi(void)