Thread (2 messages) 2 messages, 2 authors, 2021-06-25

[PATCH RESEND] blk-mq: update hctx->dispatch_busy in case of real scheduler

flat view
STALE1938d LANDED: 9 (9M)

From: Ming Lei <hidden>
Date: 2021-06-25 02:03:05
Subsystem: block layer, the rest · Maintainers: Jens Axboe, Linus Torvalds

1 review trailer; landed in mainline as cb9516be7708 on 2021-06-25.

Commit 6e6fcbc27e77 ("blk-mq: support batching dispatch in case of io")
starts to support io batching submission by using hctx->dispatch_busy.

However, blk_mq_update_dispatch_busy() isn't changed to update hctx->dispatch_busy
in that commit, so fix the issue by updating hctx->dispatch_busy in case
of real scheduler.

Reported-by: Jan Kara <jack@suse.cz>
Reviewed-by: Jan Kara <jack@suse.cz>
Fixes: 6e6fcbc27e77 ("blk-mq: support batching dispatch in case of io")
Signed-off-by: Ming Lei <redacted>
---
 block/blk-mq.c | 3 ---
 1 file changed, 3 deletions(-)
diff --git a/block/blk-mq.c b/block/blk-mq.c
index df5dc3b756f5..8fe75ec2b052 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -1252,9 +1252,6 @@ static void blk_mq_update_dispatch_busy(struct blk_mq_hw_ctx *hctx, bool busy)
 {
 	unsigned int ewma;
 
-	if (hctx->queue->elevator)
-		return;
-
 	ewma = hctx->dispatch_busy;
 
 	if (!ewma && !busy)
-- 
2.31.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help