summaryrefslogtreecommitdiffstats
path: root/block/bfq-iosched.c
diff options
context:
space:
mode:
authorYu Kuai <yukuai3@huawei.com>2022-09-16 09:19:37 +0200
committerJens Axboe <axboe@kernel.dk>2022-11-01 14:09:44 +0100
commit3d89bd12d352e20f4f7c8f11a0f1a712b95a5295 (patch)
tree2d89e70a86add19d910dd054fc81fd59163d791d /block/bfq-iosched.c
parentblk-mq: remove redundant call to blk_freeze_queue_start in blk_mq_destroy_queue (diff)
downloadlinux-3d89bd12d352e20f4f7c8f11a0f1a712b95a5295.tar.xz
linux-3d89bd12d352e20f4f7c8f11a0f1a712b95a5295.zip
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.c1
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);
}