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

From c614dbbfd3480cf18c90fd51bb52abd53339b790 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
@@ -140,6 +140,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