block, bfq: support to track if bfqq has pending requests
authorYu Kuai <yukuai3@huawei.com>
Fri, 16 Sep 2022 07:19:37 +0000 (15:19 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Nov 2022 13:09:44 +0000 (07:09 -0600)
commit3d89bd12d352e20f4f7c8f11a0f1a712b95a5295
tree2d89e70a86add19d910dd054fc81fd59163d791d
parent56c1ee92246a5099a626b955dd7f6636cdce6f93
block, bfq: support to track if bfqq has pending requests

If entity belongs to bfqq, then entity->in_groups_with_pending_reqs
is not used currently. This patch use it to track if bfqq has pending
requests through callers of weights_tree insertion and removal.

Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Acked-by: Paolo Valente <paolo.valente@linaro.org>
Link: https://lore.kernel.org/r/20220916071942.214222-2-yukuai1@huaweicloud.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bfq-iosched.c
block/bfq-iosched.h
block/bfq-wf2q.c