diff options
-rw-r--r-- | drivers/scsi/Kconfig | 11 | ||||
-rw-r--r-- | drivers/scsi/scsi.c | 4 |
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 | ||
48 | config 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 | |||
48 | config SCSI_PROC_FS | 59 | config 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"); | |||
1367 | module_param(scsi_logging_level, int, S_IRUGO|S_IWUSR); | 1367 | module_param(scsi_logging_level, int, S_IRUGO|S_IWUSR); |
1368 | MODULE_PARM_DESC(scsi_logging_level, "a bit mask of logging levels"); | 1368 | MODULE_PARM_DESC(scsi_logging_level, "a bit mask of logging levels"); |
1369 | 1369 | ||
1370 | #ifdef CONFIG_SCSI_MQ_DEFAULT | ||
1371 | bool scsi_use_blk_mq = true; | ||
1372 | #else | ||
1370 | bool scsi_use_blk_mq = false; | 1373 | bool scsi_use_blk_mq = false; |
1374 | #endif | ||
1371 | module_param_named(use_blk_mq, scsi_use_blk_mq, bool, S_IWUSR | S_IRUGO); | 1375 | module_param_named(use_blk_mq, scsi_use_blk_mq, bool, S_IWUSR | S_IRUGO); |
1372 | 1376 | ||
1373 | static int __init init_scsi(void) | 1377 | static int __init init_scsi(void) |