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)
commit8692d2db8e01f1a5718f9b67c219b823a64b2088
tree409a429d687d4a52c0a03a1d0e3deb81c60d5dfe
parent1aa50d020c7148f5f0bde15ca80fe6f91a8c5a4e
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