diff options
author | Yu Kuai <yukuai3@huawei.com> | 2022-09-16 15:19:37 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-11-01 07:09:44 -0600 |
commit | 3d89bd12d352e20f4f7c8f11a0f1a712b95a5295 (patch) | |
tree | 2d89e70a86add19d910dd054fc81fd59163d791d /block/bfq-iosched.c | |
parent | 56c1ee92246a5099a626b955dd7f6636cdce6f93 (diff) |
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>
Diffstat (limited to 'block/bfq-iosched.c')
-rw-r--r-- | block/bfq-iosched.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/block/bfq-iosched.c b/block/bfq-iosched.c index ccfadc6f71bf..71fadc7ebe0d 100644 --- a/block/bfq-iosched.c +++ b/block/bfq-iosched.c @@ -6261,6 +6261,7 @@ static void bfq_completed_request(struct bfq_queue *bfqq, struct bfq_data *bfqd) */ bfqq->budget_timeout = jiffies; + bfq_del_bfqq_in_groups_with_pending_reqs(bfqq); bfq_weights_tree_remove(bfqd, bfqq); } |