]> 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)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Wed, 4 Jan 2023 20:59:26 +0000 (15:59 -0500)
commit4320966a5c9cce0d5f20a864fb1ebb43f3adb0c3
treee7960067f293a2f92e603b097adf826734112d10
parentfa09bb546cad41959414f1df2fdfcfbc00ea2c50
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