Skip to content

Commit cb9516b

Browse files
Ming Leiaxboe
authored andcommitted
blk-mq: update hctx->dispatch_busy in case of real scheduler
Commit 6e6fcbc ("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 <[email protected]> Reviewed-by: Jan Kara <[email protected]> Fixes: 6e6fcbc ("blk-mq: support batching dispatch in case of io") Signed-off-by: Ming Lei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent fd2ef39 commit cb9516b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

block/blk-mq.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1224,9 +1224,6 @@ static void blk_mq_update_dispatch_busy(struct blk_mq_hw_ctx *hctx, bool busy)
12241224
{
12251225
unsigned int ewma;
12261226

1227-
if (hctx->queue->elevator)
1228-
return;
1229-
12301227
ewma = hctx->dispatch_busy;
12311228

12321229
if (!ewma && !busy)

0 commit comments

Comments
 (0)