]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
blk-mq: do not update io_ticks with passthrough requests
authorHaisu Wang <haisuwang@tencent.com>
Mon, 30 May 2022 06:40:59 +0000 (14:40 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jun 2022 16:41:23 +0000 (18:41 +0200)
commit601c9086845822a6e67fcbcd4b5e659003cb6a06
tree3f36d77e67be266a169cd133e271555b87038bf9
parent2094fe0ddc5bb66aed0b0d8f1324906f6f14fcdb
blk-mq: do not update io_ticks with passthrough requests

[ Upstream commit b81c14ca14b631aa1abae32fb5ae75b5e9251012 ]

Flush or passthrough requests are not accounted as normal IO in completion.
To reflect iostat for slow IO, io_ticks is updated when stat show called
based on inflight numbers.
It may cause inconsistent io_ticks calculation result.

So do not account non-passthrough request when check inflight.

Fixes: 86d7331299fd ("block: update io_ticks when io hang")
Signed-off-by: Haisu Wang <haisuwang@tencent.com>
Reviewed-by: samuelliao <samuelliao@tencent.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20220530064059.1120058-1-haisuwang@tencent.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
block/blk-mq.c