]> git.baikalelectronics.ru Git - kernel.git/commit
blk-throttle: calling throtl_dequeue/enqueue_tg in pairs
authorYu Kuai <yukuai3@huawei.com>
Sat, 27 Aug 2022 10:16:36 +0000 (18:16 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 12 Sep 2022 06:20:07 +0000 (00:20 -0600)
commit8c25ed0cb9d2e349ebebfeacf7ce1ae015afe54d
tree35ef98f722116826a86192818072b417d77e3159
parent7e9c5c54d440bd6402ffdba4dc4f3df5bfe64ea4
blk-throttle: calling throtl_dequeue/enqueue_tg in pairs

It's a little weird to call throtl_dequeue_tg() unconditionally in
throtl_select_dispatch(), since it will be called in tg_update_disptime()
again if some bio is still throttled. Thus call it later if there are no
throttled bio. There are no functional changes.

Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Acked-by: Tejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/r/20220827101637.1775111-3-yukuai1@huaweicloud.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-throttle.c