Re: [PATCH v20 11/20] mm/lru: move lock into lru_note_cost

2020-10-29 Thread Johannes Weiner
On Thu, Oct 29, 2020 at 06:44:56PM +0800, Alex Shi wrote: > We have to move lru_lock into lru_note_cost, since it cycle up on memcg > tree, for future per lruvec lru_lock replace. It's a bit ugly and may > cost a bit more locking, but benefit from multiple memcg locking could > cover the lost. > >

[PATCH v20 11/20] mm/lru: move lock into lru_note_cost

2020-10-29 Thread Alex Shi
We have to move lru_lock into lru_note_cost, since it cycle up on memcg tree, for future per lruvec lru_lock replace. It's a bit ugly and may cost a bit more locking, but benefit from multiple memcg locking could cover the lost. Signed-off-by: Alex Shi Acked-by: Hugh Dickins Cc: Johannes Weiner