aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorShakeel Butt <[email protected]>2025-05-14 18:41:54 +0000
committerAndrew Morton <[email protected]>2025-05-22 21:55:38 +0000
commit8814e3b8692b31e0150a894dd70c14ca0b7b746a (patch)
tree1b7710fca1cfb27da4a4455a600d4da0dd904343 /rust/helpers/helpers.c
parentmemcg: move preempt disable to callers of memcg_rstat_updated (diff)
downloadkernel-8814e3b8692b31e0150a894dd70c14ca0b7b746a.tar.gz
kernel-8814e3b8692b31e0150a894dd70c14ca0b7b746a.zip
memcg: make mod_memcg_state re-entrant safe against irqs
Let's make mod_memcg_state re-entrant safe against irqs. The only thing needed is to convert the usage of __this_cpu_add() to this_cpu_add(). In addition, with re-entrant safety, there is no need to disable irqs. mod_memcg_state() is not safe against nmi, so let's add warning if someone tries to call it in nmi context. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Shakeel Butt <[email protected]> Acked-by: Vlastimil Babka <[email protected]> Cc: Alexei Starovoitov <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Muchun Song <[email protected]> Cc: Roman Gushchin <[email protected]> Cc: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions