Re: [PATCH v2 2/2] blk-cgroup: Optimize blkcg_rstat_flush()

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

 




On 6/1/22 14:52, Waiman Long wrote:
On 6/1/22 14:35, Tejun Heo wrote:

Can you also add an explanation on how the pending llist is synchronized
against blkg destructions?

Sure. I will need to think about that and put a proper comment there.

I think the best way to protect against blkg destruction is to get a percpu reference when put into lockless list and put it back when removed.

BTW, when I ran a test that continuously create and destroy containers, the total number of blkcg's kept on increasing. There are some freeing of blkcg's but no freeing of blkg's at all. Maybe we have a similar dying blkcg's problem here. I will take a further look at that when I have time.

Cheers,
Longman




[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