Re: [PATCH] blk-iocost: do not WARNING if iocg has already offlined

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





在 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





[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux