38 lines
997 B
Diff
38 lines
997 B
Diff
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
|
|
@@ -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)
|
|
+ return elevator_find_get("bfq");
|
|
+#else
|
|
return elevator_find_get("mq-deadline");
|
|
+#endif
|
|
}
|
|
|
|
/*
|
|
--- a/init/Kconfig
|
|
+++ b/init/Kconfig
|
|
@@ -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
|
|
|