]> git.baikalelectronics.ru Git - kernel.git/commit
blk-iocost: replace iocg->has_surplus with ->surplus_list
authorTejun Heo <tj@kernel.org>
Tue, 1 Sep 2020 18:52:45 +0000 (14:52 -0400)
committerJens Axboe <axboe@kernel.dk>
Wed, 2 Sep 2020 01:38:32 +0000 (19:38 -0600)
commitdd301a6f40df9415a6ca96bc4b02346a27087564
tree409a429d687d4a52c0a03a1d0e3deb81c60d5dfe
parent040d1500970f20458b175d5702937069977d7263
blk-iocost: replace iocg->has_surplus with ->surplus_list

Instead of marking iocgs with surplus with a flag and filtering for them
while walking all active iocgs, build a surpluses list. This doesn't make
much difference now but will help implementing improved donation logic which
will iterate iocgs with surplus multiple times.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-iocost.c