2024-10-29 05:12:06 +03:00
|
|
|
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
|
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
|
|
|
|
@@ -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
|