Re: [PATCH 2/3] mm/memcg: remove rcu locking for lock_page_lruvec function series

2020-12-21 Thread Hugh Dickins
On Thu, 17 Dec 2020, Alex Shi wrote: > The rcu_read_lock was used to block memcg destory, but with the detailed > calling conditions, the memcg won't gone since the page is hold. So we > don't need it now, let's remove them to save locking load in debugging. " lock_page_lruvec() and its variants

[PATCH 2/3] mm/memcg: remove rcu locking for lock_page_lruvec function series

2020-12-16 Thread Alex Shi
The rcu_read_lock was used to block memcg destory, but with the detailed calling conditions, the memcg won't gone since the page is hold. So we don't need it now, let's remove them to save locking load in debugging. Signed-off-by: Alex Shi Cc: Hugh Dickins Cc: Johannes Weiner Cc: Michal Hocko