aboutsummaryrefslogtreecommitdiffstats
path: root/mm/hugetlb.c
diff options
context:
space:
mode:
authorShakeel Butt <[email protected]>2025-05-14 18:41:58 +0000
committerAndrew Morton <[email protected]>2025-05-22 21:55:39 +0000
commit200577f69f29a58c90c67c83a0df6d12850e1d09 (patch)
tree6692c352c036b49ae80b46e29d25e8311ad96527 /mm/hugetlb.c
parentmemcg: no stock lock for cpu hot-unplug (diff)
downloadkernel-200577f69f29a58c90c67c83a0df6d12850e1d09.tar.gz
kernel-200577f69f29a58c90c67c83a0df6d12850e1d09.zip
memcg: objcg stock trylock without irq disabling
There is no need to disable irqs to use objcg per-cpu stock, so let's just not do that but consume_obj_stock() and refill_obj_stock() will need to use trylock instead to avoid deadlock against irq. One consequence of this change is that the charge request from irq context may take slowpath more often but it should be rare. 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 'mm/hugetlb.c')
0 files changed, 0 insertions, 0 deletions