1
0
linux/debian/patches/patchset-zen/sauce/0013-ZEN-INTERACTIVE-Use-Kyber-as-the-elevator-for-MQ-dev.patch

37 lines
1.1 KiB
Diff
Raw Normal View History

2024-12-10 00:17:37 +03:00
From 346251fa257245b3a06e37de863a1dbafbf2bbc2 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
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");
+#elif defined(CONFIG_ZEN_INTERACTIVE)
2024-11-01 15:46:17 +03:00
+ return elevator_find_get("mq-deadline");
+#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");
--- a/init/Kconfig
+++ b/init/Kconfig
2024-12-10 00:17:37 +03:00
@@ -163,6 +163,7 @@ config ZEN_INTERACTIVE
--- Block Layer ----------------------------------------
Default scheduler for SQ..: mq-deadline -> bfq
+ Default scheduler for MQ..: none -> kyber
config BROKEN
bool