]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit - block/blk-iocost.c
iocost: check active_list of all the ancestors in iocg_activate()
authorJiufei Xue <jiufei.xue@linux.alibaba.com>
Wed, 13 Nov 2019 07:21:31 +0000 (15:21 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 14 Nov 2019 20:56:54 +0000 (13:56 -0700)
commit8b37bc277fb459fa100808880a9d4e0641fff444
treea337c969b8cb7c4229696f00000e32235316dde7
parent478de3380c1c7dbb0f65f545ee0185848413f3fe
iocost: check active_list of all the ancestors in iocg_activate()

There is a bug that checking the same active_list over and over again
in iocg_activate(). The intention of the code was checking whether all
the ancestors and self have already been activated. So fix it.

Fixes: 7caa47151ab2 ("blkcg: implement blk-iocost")
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jiufei Xue <jiufei.xue@linux.alibaba.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-iocost.c