1
0
linux/debian/patches/patchset-zen/sauce/0012-ZEN-INTERACTIVE-Use-BFQ-as-the-elevator-for-SQ-devic.patch

38 lines
997 B
Diff
Raw Normal View History

2024-12-10 00:17:37 +03:00
From d2f0a5801471b5f67344b2c92a2aa29f1aed626a Mon Sep 17 00:00:00 2001
From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
Date: Mon, 27 Jan 2020 18:11:05 +0100
Subject: ZEN: INTERACTIVE: Use BFQ as the elevator for SQ devices
---
block/elevator.c | 4 ++++
init/Kconfig | 4 ++++
2 files changed, 8 insertions(+)
--- a/block/elevator.c
+++ b/block/elevator.c
2024-11-01 15:46:17 +03:00
@@ -568,7 +568,11 @@ static struct elevator_type *elevator_ge
!blk_mq_is_shared_tags(q->tag_set->flags))
return NULL;
+#if defined(CONFIG_ZEN_INTERACTIVE) && defined(CONFIG_IOSCHED_BFQ)
2024-11-01 15:46:17 +03:00
+ return elevator_find_get("bfq");
+#else
2024-11-01 15:46:17 +03:00
return elevator_find_get("mq-deadline");
+#endif
}
/*
--- a/init/Kconfig
+++ b/init/Kconfig
2024-12-10 00:17:37 +03:00
@@ -160,6 +160,10 @@ config ZEN_INTERACTIVE
help
Tunes the kernel for responsiveness at the cost of throughput and power usage.
+ --- Block Layer ----------------------------------------
+
+ Default scheduler for SQ..: mq-deadline -> bfq
+
config BROKEN
bool