2024-12-10 00:17:37 +03:00
|
|
|
From d2f0a5801471b5f67344b2c92a2aa29f1aed626a Mon Sep 17 00:00:00 2001
|
2024-10-29 05:12:06 +03:00
|
|
|
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
|
2024-10-29 05:12:06 +03:00
|
|
|
!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");
|
2024-10-29 05:12:06 +03:00
|
|
|
+#else
|
2024-11-01 15:46:17 +03:00
|
|
|
return elevator_find_get("mq-deadline");
|
2024-10-29 05:12:06 +03:00
|
|
|
+#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
--- a/init/Kconfig
|
|
|
|
+++ b/init/Kconfig
|
2024-12-10 00:17:37 +03:00
|
|
|
@@ -160,6 +160,10 @@ config ZEN_INTERACTIVE
|
2024-10-29 05:12:06 +03:00
|
|
|
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
|
|
|
|
|