]> git.baikalelectronics.ru Git - kernel.git/commit
blk-throttle: cleanup tg_update_disptime()
authorYu Kuai <yukuai3@huawei.com>
Sat, 27 Aug 2022 10:16:37 +0000 (18:16 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 12 Sep 2022 06:20:08 +0000 (00:20 -0600)
commit2cfe54eca004bb3ddef8095986ea90a4a69b4c1d
treead92ebd20e0418484036cd55ee269494beb26574
parent7f1f958f5b5191357560c924c692d453a1316cf5
blk-throttle: cleanup tg_update_disptime()

tg_update_disptime() only need to adjust postion for 'tg' in
'parent_sq', there is no need to call throtl_enqueue/dequeue_tg(),
since they will set/clear flag THROTL_TG_PENDING and increase/decrease
nr_pending, which is useless. By the way, clear the flag/decrease
nr_pending while there are still throttled bios is not good for debugging.

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-4-yukuai1@huaweicloud.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-throttle.c