diff options
author | Ming Lei <ming.lei@redhat.com> | 2021-06-25 10:02:48 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-06-25 09:50:31 -0600 |
commit | cb9516be7708a2a18ec0a19fe3a225b5b3bc92c7 (patch) | |
tree | ee5d183398393aa97d7a782437f828cb35a4a305 /block | |
parent | fd2ef39cc9a6b9c4c41864ac506906c52f94b06a (diff) | |
download | linux-cb9516be7708a2a18ec0a19fe3a225b5b3bc92c7.tar.bz2 |
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.
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 <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20210625020248.1630497-1-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-mq.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c index 3115ea2d0990..c2f3550337f7 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -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) |