在 2024/4/18 16:52, Yu Kuai 写道:
在 2024/04/18 15:23, linan666@xxxxxxxxxxxxxxx 写道:
From: Li Nan <linan122@xxxxxxxxxx>
In iocg_pay_debt(), warn is triggered if 'active_list' is empty, which
is intended to confirm iocg is avitve when it has debt. However, warn
can be triggered during removing cgroup controller, as
iocg_waitq_timer_fn() is awakened at that time.
WARNING: CPU: 0 PID: 2344971 at block/blk-iocost.c:1402
iocg_pay_debt+0x14c/0x190
This line doesn't match the code from mainline, please mention that
which kernel release you're testing.
Thanks for your review.
I tested at 5.10, but mainline has the same issue.
Other than that, ioc_pd_free() indeed clear 'active_list' before
canceling the timer, this patch looks good to me.
Reviewed-by: Yu Kuai <yukuai3@xxxxxxxxxx>
--
Thanks,
Nan