diff options
author | aszlig <aszlig@redmoonstudios.org> | 2017-07-06 00:37:49 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2017-07-06 00:41:36 +0200 |
commit | d1e8f105cdb6e8e9449bbef4459d9dd0fd745065 (patch) | |
tree | d3a1eab8408ff7bb4799451f4ae96a8ff2387c39 /modules/user/aszlig/system/bfq-by-default.patch | |
parent | 03063098c83ea99764474f1acb057c1a1feb6613 (diff) |
modules/kernel: Really enable BFQ by default
I previously wrote that patch in a hurry, so I thought it would be enough to set CONFIG_DEFAULT_IOSCHED to "bfq". But in block/elevator.c the actual default for blk-mq is a constant and can't be configured via CONFIG_DEFAULT_IOSCHED. So we're now patching just that constant and nothing more. Also, I've enabled CONFIG_DM_MQ_DEFAULT, because the DM devices need to be switched to blk-mq as well and for example on dnyarri I'm actually using the device mapper for LUKS. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'modules/user/aszlig/system/bfq-by-default.patch')
-rw-r--r-- | modules/user/aszlig/system/bfq-by-default.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/user/aszlig/system/bfq-by-default.patch b/modules/user/aszlig/system/bfq-by-default.patch new file mode 100644 index 00000000..c6ee0492 --- /dev/null +++ b/modules/user/aszlig/system/bfq-by-default.patch @@ -0,0 +1,13 @@ +diff --git a/block/elevator.c b/block/elevator.c +index dac99fbfc273..fbcdba53a3aa 100644 +--- a/block/elevator.c ++++ b/block/elevator.c +@@ -229,7 +229,7 @@ int elevator_init(struct request_queue *q, char *name) + */ + if (q->mq_ops) { + if (q->nr_hw_queues == 1) +- e = elevator_get("mq-deadline", false); ++ e = elevator_get("bfq", false); + if (!e) + return 0; + } else |