]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kernel/fork: throttle call_rcu() calls in vm_area_free
authorSuren Baghdasaryan <surenb@google.com>
Sun, 7 Aug 2022 08:25:53 +0000 (01:25 -0700)
committerSuren Baghdasaryan <surenb@google.com>
Wed, 23 Nov 2022 02:09:47 +0000 (02:09 +0000)
commit6f6d8152e277e1e1c729cb59fdf8f429ff2bd9d0
tree2fcc95d7f0cdf668bce6ef4d51a88b330d3f148b
parent9a5fd532ab1ef485180ad01410680c03bc0161c6
kernel/fork: throttle call_rcu() calls in vm_area_free

call_rcu() can take a long time when callback offloading is enabled.
Its use in the vm_area_free can cause regressions in the exit path when
multiple VMAs are being freed. To minimize that impact, place VMAs into
a list and free them in groups using one call_rcu() call per group.

Signed-off-by: Suren Baghdasaryan <surenb@google.com>
include/linux/mm.h
include/linux/mm_types.h
kernel/fork.c
mm/init-mm.c
mm/mmap.c