37 lines
1.1 KiB
Diff
37 lines
1.1 KiB
Diff
|
From b87281991e8f34e557cf2fb1614b3f4808100233 Mon Sep 17 00:00:00 2001
|
||
|
From: "Jan Alexander Steffens (heftig)" <heftig@archlinux.org>
|
||
|
Date: Mon, 12 Dec 2022 00:03:03 +0100
|
||
|
Subject: ZEN: INTERACTIVE: Use Kyber as the elevator for MQ devices
|
||
|
|
||
|
---
|
||
|
block/elevator.c | 6 ++++++
|
||
|
init/Kconfig | 1 +
|
||
|
2 files changed, 7 insertions(+)
|
||
|
|
||
|
--- a/block/elevator.c
|
||
|
+++ b/block/elevator.c
|
||
|
@@ -567,7 +567,13 @@ static struct elevator_type *elevator_ge
|
||
|
|
||
|
if (q->nr_hw_queues != 1 &&
|
||
|
!blk_mq_is_shared_tags(q->tag_set->flags))
|
||
|
+#if defined(CONFIG_ZEN_INTERACTIVE) && defined(CONFIG_MQ_IOSCHED_KYBER)
|
||
|
+ return elevator_find_get(q, "kyber");
|
||
|
+#elif defined(CONFIG_ZEN_INTERACTIVE)
|
||
|
+ return elevator_find_get(q, "mq-deadline");
|
||
|
+#else
|
||
|
return NULL;
|
||
|
+#endif
|
||
|
|
||
|
#if defined(CONFIG_ZEN_INTERACTIVE) && defined(CONFIG_IOSCHED_BFQ)
|
||
|
return elevator_find_get(q, "bfq");
|
||
|
--- a/init/Kconfig
|
||
|
+++ b/init/Kconfig
|
||
|
@@ -143,6 +143,7 @@ config ZEN_INTERACTIVE
|
||
|
--- Block Layer ----------------------------------------
|
||
|
|
||
|
Default scheduler for SQ..: mq-deadline -> bfq
|
||
|
+ Default scheduler for MQ..: none -> kyber
|
||
|
|
||
|
config BROKEN
|
||
|
bool
|