Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 07b36ce

Browse files
committed
ZEN: INTERACTIVE: Use BFQ as our elevator
Add a scheduler even to multi-queue block devices: We prefer interactivity to throughput and want BFQ if possible.
1 parent 827501a commit 07b36ce

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

block/elevator.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,10 +628,14 @@ static inline bool elv_support_iosched(struct request_queue *q)
628628
*/
629629
static struct elevator_type *elevator_get_default(struct request_queue *q)
630630
{
631+
#ifndef CONFIG_ZEN_INTERACTIVE
631632
if (q->nr_hw_queues != 1)
632633
return NULL;
634+
#endif
633635

634-
#if defined(CONFIG_MQ_IOSCHED_DEADLINE_NODEFAULT)
636+
#if defined(CONFIG_ZEN_INTERACTIVE) && defined(CONFIG_IOSCHED_BFQ)
637+
return elevator_get(q, "bfq", false);
638+
#elif defined(CONFIG_MQ_IOSCHED_DEADLINE_NODEFAULT)
635639
return elevator_get(q, "mq-deadline-nodefault", false);
636640
#else
637641
return elevator_get(q, "mq-deadline", false);

init/Kconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ config ZEN_INTERACTIVE
7979
help
8080
Tunes the kernel for responsiveness at the cost of throughput and power usage.
8181

82+
--- Block Layer ----------------------------------------
83+
84+
Default scheduler.........: mq-deadline -> bfq
85+
8286
config BROKEN
8387
bool
8488

0 commit comments

Comments
 (0)