]> git.ipfire.org Git - thirdparty/kernel/linux.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>
Thu, 7 Nov 2024 04:11:19 +0000 (20:11 -0800)
commit568bcf4148493a3cf544f88df4e81e862b69f5e9
tree85ba39cd54f70a49fbd92f7d4a479263586e24d0
parenta8cd9d4ce35eaeb603c3ae7633bb120de5970b3c
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