aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers
diff options
context:
space:
mode:
authorShakeel Butt <[email protected]>2025-05-14 18:41:55 +0000
committerAndrew Morton <[email protected]>2025-05-22 21:55:38 +0000
commite52401e7247bb36cabba389ae32fb75a12a6e94b (patch)
tree1c84901a267d70581f8d8ecb4259b52ab312ee46 /rust/helpers
parentmemcg: make mod_memcg_state re-entrant safe against irqs (diff)
downloadkernel-e52401e7247bb36cabba389ae32fb75a12a6e94b.tar.gz
kernel-e52401e7247bb36cabba389ae32fb75a12a6e94b.zip
memcg: make count_memcg_events re-entrant safe against irqs
Let's make count_memcg_events 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. Also add warnings for in_nmi() as it is not safe against 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')
0 files changed, 0 insertions, 0 deletions