Skip to content
Snippets Groups Projects
Commit 952744bd authored by Ming Lei's avatar Ming Lei
Browse files

blk-mq: do not update io_ticks with passthrough requests

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2083917



commit b81c14ca
Author: Haisu Wang <haisuwang@tencent.com>
Date:   Mon May 30 14:40:59 2022 +0800

    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: 86d73312 ("block: update io_ticks when io hang")
Signed-off-by: default avatarHaisu Wang <haisuwang@tencent.com>
Reviewed-by: default avatarsamuelliao <samuelliao@tencent.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
    Link: https://lore.kernel.org/r/20220530064059.1120058-1-haisuwang@tencent.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>

Signed-off-by: default avatarMing Lei <ming.lei@redhat.com>
parent c1864d12
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment