]> git.baikalelectronics.ru Git - kernel.git/commit
mm/list_lru.c: revert "mm/list_lru: optimize memcg_reparent_list_lru_node()"
authorAndrew Morton <akpm@linux-foundation.org>
Fri, 8 Apr 2022 20:09:13 +0000 (13:09 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 9 Apr 2022 00:20:36 +0000 (14:20 -1000)
commit333e5e9403f9649bd690837f27479fa2839320b0
treeb5336cb48a4d9c1850f044098910ee12ff47d415
parentc11243e3c491adc3d5530c09057edb16d9180262
mm/list_lru.c: revert "mm/list_lru: optimize memcg_reparent_list_lru_node()"

Commit 14eca45c4e5a ("mm/list_lru: optimize memcg_reparent_list_lru_node()")
has subtle races which are proving ugly to fix.  Revert the original
optimization.  If quantitative testing indicates that we have a
significant problem here then other implementations can be looked at.

Fixes: 14eca45c4e5a ("mm/list_lru: optimize memcg_reparent_list_lru_node()")
Acked-by: Shakeel Butt <shakeelb@google.com>
Reviewed-by: Muchun Song <songmuchun@bytedance.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Waiman Long <longman@redhat.com>
Cc: Roman Gushchin <roman.gushchin@linux.dev>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/list_lru.c