android_kernel_msm-6.1_noth.../include
Liam R. Howlett 2ea053d317 FROMGIT: userfaultfd: fix regression in userfaultfd_unmap_prep()
Android reported a performance regression in the userfaultfd unmap path.
A closer inspection on the userfaultfd_unmap_prep() change showed that a
second tree walk would be necessary in the reworked code.

Fix the regression by passing each VMA that will be unmapped through to
the userfaultfd_unmap_prep() function as they are added to the unmap list,
instead of re-walking the tree for the VMA.

Link: https://lkml.kernel.org/r/20230601015402.2819343-1-Liam.Howlett@oracle.com
Fixes: 69dbe6daf1 ("userfaultfd: use maple tree iterator to iterate VMAs")
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Reported-by: Suren Baghdasaryan <surenb@google.com>
Suggested-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

(cherry picked from commit de53cc0be1c8b47d595682932beb3c11be9e4e5a
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm mm-unstable)

Bug: 274059236
Change-Id: Ia189a5e98ffe86c4ca5ac3b686ada5f51826f2ed
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2023-06-06 20:05:25 +00:00
..
acpi ACPI: video: Add auto_detect arg to __acpi_video_get_backlight_type() 2023-04-13 16:55:33 +02:00
asm-generic BACKPORT: arm64: unwind: add asynchronous unwind tables to kernel and modules 2023-05-25 15:37:14 -07:00
clocksource
crypto
drm Merge 6.1.24 into android14-6.1 2023-04-22 08:52:25 +00:00
dt-bindings
keys
kunit kunit: fix kunit_test_init_section_suites(...) 2023-02-09 11:28:08 +01:00
kvm Revert "Revert "KVM: arm64: PMU: Align chained counter implementation with architecture pseudocode"" 2023-05-11 05:22:29 +00:00
linux FROMGIT: userfaultfd: fix regression in userfaultfd_unmap_prep() 2023-06-06 20:05:25 +00:00
math-emu
media Merge 6.1.18 into android14-6.1 2023-03-21 08:22:15 +00:00
memory memory: renesas-rpc-if: Split-off private data from struct rpcif 2023-03-11 13:55:17 +01:00
misc
net ANDROID: GKI: add vendor padding variable in struct sock 2023-05-24 13:15:37 +00:00
pcmcia
ras
rdma
rv
scsi Revert "Revert "scsi: core: Add BLIST_NO_VPD_SIZE for some VDASD"" 2023-03-30 12:23:03 +01:00
soc
sound Merge 6.1.16 into android14-6.1 2023-03-13 15:45:34 +00:00
target
trace ANDROID: vendor_hooks:vendor hook for mmput 2023-06-05 23:15:22 +00:00
uapi ANDROID: gunyah: Sync with latest documentation and UAPI 2023-05-16 20:35:28 +00:00
ufs FROMLIST: scsi: ufs: core: Rename symbol sizeof_utp_transfer_cmd_desc() 2023-05-11 03:22:33 +00:00
vdso
video
xen x86/PVH: obtain VGA console info in Dom0 2023-04-06 12:10:39 +02:00
OWNERS