diff options
author | Yu Kuai <yukuai3@huawei.com> | 2022-09-16 10:19:37 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-11-01 16:09:44 +0300 |
commit | 3d89bd12d352e20f4f7c8f11a0f1a712b95a5295 (patch) | |
tree | 2d89e70a86add19d910dd054fc81fd59163d791d /block/bfq-iosched.h | |
parent | 56c1ee92246a5099a626b955dd7f6636cdce6f93 (diff) | |
download | linux-3d89bd12d352e20f4f7c8f11a0f1a712b95a5295.tar.xz |
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.h')
-rw-r--r-- | block/bfq-iosched.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/block/bfq-iosched.h b/block/bfq-iosched.h index 71f721670ab6..42c910f2d50d 100644 --- a/block/bfq-iosched.h +++ b/block/bfq-iosched.h @@ -1078,6 +1078,8 @@ void bfq_requeue_bfqq(struct bfq_data *bfqd, struct bfq_queue *bfqq, bool expiration); void bfq_del_bfqq_busy(struct bfq_queue *bfqq, bool expiration); void bfq_add_bfqq_busy(struct bfq_queue *bfqq); +void bfq_add_bfqq_in_groups_with_pending_reqs(struct bfq_queue *bfqq); +void bfq_del_bfqq_in_groups_with_pending_reqs(struct bfq_queue *bfqq); /* --------------- end of interface of B-WF2Q+ ---------------- */ |