mirror of
https://github.com/torvalds/linux.git
synced 2026-06-06 13:37:36 +02:00
blk-mq: update hctx->dispatch_busy in case of real scheduler
[ Upstream commitcb9516be77] Commit6e6fcbc27e("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:6e6fcbc27e("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
3e33b1329c
commit
512106ae23
|
|
@ -1242,9 +1242,6 @@ static void blk_mq_update_dispatch_busy(struct blk_mq_hw_ctx *hctx, bool busy)
|
||||||
{
|
{
|
||||||
unsigned int ewma;
|
unsigned int ewma;
|
||||||
|
|
||||||
if (hctx->queue->elevator)
|
|
||||||
return;
|
|
||||||
|
|
||||||
ewma = hctx->dispatch_busy;
|
ewma = hctx->dispatch_busy;
|
||||||
|
|
||||||
if (!ewma && !busy)
|
if (!ewma && !busy)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user