]> git.baikalelectronics.ru Git - kernel.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)
committerJens Axboe <axboe@kernel.dk>
Mon, 30 May 2022 13:13:12 +0000 (07:13 -0600)
commit2f80db42daa916d94d21ec7c4e15db9be6d2acde
tree5e0316e3a89a8ef34c189c463f346137d72fdba1
parentda1c44c7d940829d8569c4346af73cc17f3f0ac8
blk-mq: do not update io_ticks with passthrough requests

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: e0acc99f3260 ("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>
block/blk-mq.c