Permalink
Browse files

[BFQ] Set bfq-mq scheduler by default for blk-mq

Signed-off-by: Alexandre Frade <admfrade@gmail.com>
  • Loading branch information...
xanmod committed Sep 5, 2017
1 parent 9dfa015 commit d3f8ff43fbc4954283d60f435be5c4badc2028fb
Showing with 3 additions and 3 deletions.
  1. +3 −3 block/elevator.c
View
@@ -222,15 +222,15 @@ int elevator_init(struct request_queue *q, char *name)
if (!e) {
/*
* For blk-mq devices, we default to using mq-bfq, if
* For blk-mq devices, we default to using bfq-mq, if
* available, else mq-deadline, for single queue devices.
* If deadline isn't available OR we have multiple queues,
* default to "none".
*/
if (q->mq_ops) {
if (q->nr_hw_queues == 1)
#ifdef CONFIG_IOSCHED_BFQ
e = elevator_get("bfq", false);
#ifdef CONFIG_MQ_IOSCHED_BFQ
e = elevator_get("bfq-mq", false);
#else
e = elevator_get("mq-deadline", false);
#endif

0 comments on commit d3f8ff4

Please sign in to comment.