Re: [PATCH 03/14] lru/memcg: using per lruvec lock in un/lock_page_lru

From: Alex Shi
Date: Mon Aug 26 2019 - 10:17:32 EST




å 2019/8/26 äå4:30, Konstantin Khlebnikov åé:
>>
>> Â
>
> What protects lruvec from freeing at this point?
> After reading resolving lruvec page could be moved and cgroup deleted.
>
> In this old patches I've used RCU for that: https://lkml.org/lkml/2012/2/20/276
> Pointer to lruvec should be resolved under disabled irq.
> Not sure this works these days.

Thanks for reminder! I will reconsider this point and come up with changes.

Thanks
Alex