Konstantin Demin
8cbaf1dea2
3rd patchs (in alphabetical order): - bbr3 - ntsync5 - openwrt - pf-kernel - xanmod - zen no configuration changes for now
38 lines
1003 B
Diff
38 lines
1003 B
Diff
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
|
|
@@ -569,7 +569,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(q, "bfq");
|
|
+#else
|
|
return elevator_find_get(q, "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
|
|
|