]> www.infradead.org Git - users/jedix/linux-maple.git/commit
memcg-v1: no need for memcg locking for MGLRU
authorShakeel Butt <shakeel.butt@linux.dev>
Fri, 25 Oct 2024 01:23:02 +0000 (18:23 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 1 Nov 2024 04:29:25 +0000 (21:29 -0700)
commit45e3ee045f3872212a689fd7d4cd5efff7dd57cb
tree3f14d3da6146c9d01d062919ac6c9175c3785910
parentd37a1e76af5066089b91794aea8676475a91946a
memcg-v1: no need for memcg locking for MGLRU

While updating the generation of the folios, MGLRU requires that the
folio's memcg association remains stable.  With the charge migration
deprecated, there is no need for MGLRU to acquire locks to keep the folio
and memcg association stable.

Link: https://lkml.kernel.org/r/20241025012304.2473312-6-shakeel.butt@linux.dev
Signed-off-by: Shakeel Butt <shakeel.butt@linux.dev>
Reviewed-by: Roman Gushchin <roman.gushchin@linux.dev>
Cc: Hugh Dickins <hughd@google.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Yosry Ahmed <yosryahmed@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vmscan.c