[<prev] [next>] [day] [month] [year] [list]
Message-Id: <157b97d7bda348b657b09e9c5a294305cfe29329.1615527324.git.brookxu@tencent.com>
Date: Fri, 12 Mar 2021 19:08:42 +0800
From: brookxu <brookxu.cn@...il.com>
To: paolo.valente@...aro.org, axboe@...nel.dk, tj@...nel.org
Cc: linux-block@...r.kernel.org, cgroups@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [RFC PATCH v2 08/11] bfq: disallow idle if CLASS_RT waiting for service
From: Chunguang Xu <brookxu@...cent.com>
if CLASS_RT is waiting for service,queues belong
to other class disallow idle, so that a schedule
can be invoked in time.
Signed-off-by: Chunguang Xu <brookxu@...cent.com>
---
block/bfq-iosched.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/block/bfq-iosched.c b/block/bfq-iosched.c
index a5f13589df79..9330043cdd53 100644
--- a/block/bfq-iosched.c
+++ b/block/bfq-iosched.c
@@ -4263,6 +4263,11 @@ static bool bfq_better_to_idle(struct bfq_queue *bfqq)
if (unlikely(bfqd->strict_guarantees))
return true;
+#ifdef CONFIG_BFQ_GROUP_IOSCHED
+ if (!bfq_class_rt(bfqq) && bfqd->busy_groups[0])
+ return false;
+#endif
+
/*
* Idling is performed only if slice_idle > 0. In addition, we
* do not idle if
--
2.30.0
Powered by blists - more mailing lists