]> www.infradead.org Git - users/willy/xarray.git/commit
mm: memcg: add cache line padding to mem_cgroup_per_node
authorRoman Gushchin <roman.gushchin@linux.dev>
Mon, 1 Jul 2024 18:59:32 +0000 (18:59 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 10 Jul 2024 19:14:54 +0000 (12:14 -0700)
commit6df13230b612af81ce04f20bb37a02e58ef71925
tree6eb98f72f91549532fff2c387e40d7c7a9591318
parent9fa001cf3bb0598aad09d15b2896f7db9ef87637
mm: memcg: add cache line padding to mem_cgroup_per_node

Memcg v1-specific fields serve a buffer function between read-mostly and
update often parts of the mem_cgroup_per_node structure.  If
CONFIG_MEMCG_V1 is not set and these fields are not present, an explicit
cacheline padding is needed.

Link: https://lkml.kernel.org/r/20240701185932.704807-2-roman.gushchin@linux.dev
Signed-off-by: Roman Gushchin <roman.gushchin@linux.dev>
Suggested-by: Shakeel Butt <shakeel.butt@linux.dev>
Acked-by: Shakeel Butt <shakeel.butt@linux.dev>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Muchun Song <muchun.song@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/memcontrol.h