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

During the era of memcg charge migration, the kernel has to be make
sure that the writeback stat updates do not race with the charge
migration.  Otherwise it might update the writeback stats of the wrong
memcg.  Now with the memcg charge migration gone, there is no more race
for writeback stat updates and the previous locking can be removed.

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