2024-12-10 00:17:37 +03:00
|
|
|
From 346251fa257245b3a06e37de863a1dbafbf2bbc2 Mon Sep 17 00:00:00 2001
|
2024-10-29 05:12:06 +03:00
|
|
|
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
|
2024-11-01 15:46:17 +03:00
|
|
|
@@ -566,7 +566,13 @@ static struct elevator_type *elevator_ge
|
2024-10-29 05:12:06 +03:00
|
|
|
|
|
|
|
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)
|
2024-11-01 15:46:17 +03:00
|
|
|
+ return elevator_find_get("kyber");
|
2024-10-29 05:12:06 +03:00
|
|
|
+#elif defined(CONFIG_ZEN_INTERACTIVE)
|
2024-11-01 15:46:17 +03:00
|
|
|
+ return elevator_find_get("mq-deadline");
|
2024-10-29 05:12:06 +03:00
|
|
|
+#else
|
|
|
|
return NULL;
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
#if defined(CONFIG_ZEN_INTERACTIVE) && defined(CONFIG_IOSCHED_BFQ)
|
2024-11-01 15:46:17 +03:00
|
|
|
return elevator_find_get("bfq");
|
2024-10-29 05:12:06 +03:00
|
|
|
--- a/init/Kconfig
|
|
|
|
+++ b/init/Kconfig
|
2024-12-10 00:17:37 +03:00
|
|
|
@@ -163,6 +163,7 @@ config ZEN_INTERACTIVE
|
2024-10-29 05:12:06 +03:00
|
|
|
--- Block Layer ----------------------------------------
|
|
|
|
|
|
|
|
Default scheduler for SQ..: mq-deadline -> bfq
|
|
|
|
+ Default scheduler for MQ..: none -> kyber
|
|
|
|
|
|
|
|
config BROKEN
|
|
|
|
bool
|