Skip to content

Commit

Permalink
elevator: set default scheduler to bfq for blk-mq
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre Frade <kernel@xanmod.org>
  • Loading branch information
xanmod committed Dec 23, 2020
1 parent c02a72b commit c7a427a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions block/elevator.c
Original file line number Diff line number Diff line change
Expand Up @@ -623,15 +623,15 @@ static inline bool elv_support_iosched(struct request_queue *q)
}

/*
* For single queue devices, default to using mq-deadline. If we have multiple
* queues or mq-deadline is not available, default to "none".
* For single queue devices, default to using bfq. If we have multiple
* queues or bfq is not available, default to "none".
*/
static struct elevator_type *elevator_get_default(struct request_queue *q)
{
if (q->nr_hw_queues != 1)
return NULL;

return elevator_get(q, "mq-deadline", false);
return elevator_get(q, "bfq", false);
}

/*
Expand Down

0 comments on commit c7a427a

Please sign in to comment.