blk-mq: update hctx->dispatch_busy in case of real scheduler
PATCH v2 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.
--- block/blk-mq.c | 3 --- 1 file changed, 3 deletions(-)
block/blk-mq.c +0 -3
@@ -1224,9 +1224,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
Quoted 11 lines · Ming Lei
Commit
6e6fcbc27e77("blk-mq: support batching dispatch in case of io") starts to support io batching submission by usinghctx->dispatch_busy.However,
blk_mq_update_dispatch_busy()isn't changed to updatehctx->dispatch_busyin that commit, so fix the issue by updatinghctx->dispatch_busyin case of real scheduler.Reported-by Jan Kara <[email protected]>Reviewed-by Jan Kara <[email protected]>Fixes 6e6fcbc27e77 ("blk-mq: support batching dispatch in case of io")Signed-off-by Ming Lei <[email protected]>
Hello Jens,
Can you merge this patch if you are fine?
thanks,
Ming