Skip to contentSkip to conversation

blk-mq: update hctx->dispatch_busy in case of real scheduler

PATCH RESEND Applied Ming Lei 2 participants 2 messages Jun 25, 2021 Block layer

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore

Ming Lei

author
#0 lore raw

PATCH RESEND 1/1 blk-mq: update hctx->dispatch_busy in case of real scheduler

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.

Fixes 6e6fcbc27e77 ("blk-mq: support batching dispatch in case of io")
---
 block/blk-mq.c | 3 ---
 1 file changed, 3 deletions(-)
block/blk-mq.c +0 -3
index df5dc3b756f5..8fe75ec2b052 100644
@@ -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)
Signature · 1 line
2.31.1
maintainer Applied
#1 lore raw
Quoted 6 lines · Ming Lei

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.

Applied, thanks.

Signature · 1 line
Jens Axboe