block: Replace struct rq_depth with unsigned int in struct iolatency_grp
authorKemeng Shi <shikemeng@huawei.com>
Tue, 18 Oct 2022 11:12:40 +0000 (19:12 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Nov 2022 15:12:24 +0000 (09:12 -0600)
commitdc572f418a14b18270676c4a7d23a3c8a5544abc
tree214284ea44c28f7f98d4d3500087eac8d8514cad
parent6891f968985f0569eaf56430518895b3c2885da1
block: Replace struct rq_depth with unsigned int in struct iolatency_grp

We only need a max queue depth for every iolatency to limit the inflight io
number. Replace struct rq_depth with unsigned int to simplfy "struct
iolatency_grp" and save memory.

Signed-off-by: Kemeng Shi <shikemeng@huawei.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Link: https://lore.kernel.org/r/20221018111240.22612-4-shikemeng@huawei.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-iolatency.c