aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorShakeel Butt <[email protected]>2025-05-14 18:41:56 +0000
committerAndrew Morton <[email protected]>2025-05-22 21:55:38 +0000
commiteee8a1778cab9efd5ba0eee1c081b4a4b396375b (patch)
tree999a6289915c34677e827ed8d801e05111846115 /rust/helpers/helpers.c
parentmemcg: make count_memcg_events re-entrant safe against irqs (diff)
downloadkernel-eee8a1778cab9efd5ba0eee1c081b4a4b396375b.tar.gz
kernel-eee8a1778cab9efd5ba0eee1c081b4a4b396375b.zip
memcg: make __mod_memcg_lruvec_state re-entrant safe against irqs
Let's make __mod_memcg_lruvec_state re-entrant safe and name it mod_memcg_lruvec_state(). The only thing needed is to convert the usage of __this_cpu_add() to this_cpu_add(). There are two callers of mod_memcg_lruvec_state() and one of them i.e. __mod_objcg_mlstate() will be re-entrant safe as well, so, rename it mod_objcg_mlstate(). The last caller __mod_lruvec_state() still calls __mod_node_page_state() which is not re-entrant safe yet, so keep it as is. 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