Skip to content

Commit bd1a0d1

Browse files
heftigkakra
authored andcommitted
ZEN: INTERACTIVE: Use Kyber as the elevator for MQ devices
Signed-off-by: Kai Krakow <[email protected]>
1 parent e26d4a6 commit bd1a0d1

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

block/elevator.c

+6
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,13 @@ static struct elevator_type *elevator_get_default(struct request_queue *q)
566566

567567
if (q->nr_hw_queues != 1 &&
568568
!blk_mq_is_shared_tags(q->tag_set->flags))
569+
#if defined(CONFIG_ZEN_INTERACTIVE) && defined(CONFIG_MQ_IOSCHED_KYBER)
570+
return elevator_find_get(q, "kyber");
571+
#elif defined(CONFIG_ZEN_INTERACTIVE)
572+
return elevator_find_get(q, "mq-deadline");
573+
#else
569574
return NULL;
575+
#endif
570576

571577
#if defined(CONFIG_ZEN_INTERACTIVE) && defined(CONFIG_IOSCHED_BFQ)
572578
return elevator_find_get("bfq");

init/Kconfig

+1
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ config ZEN_INTERACTIVE
154154
--- Block Layer ----------------------------------------
155155

156156
Default scheduler for SQ..: mq-deadline -> bfq
157+
Default scheduler for MQ..: none -> kyber
157158

158159
config BROKEN
159160
bool

0 commit comments

Comments
 (0)