android_kernel_msm-6.1_noth.../drivers/android
Carlos Llamas 78dfa69547 UPSTREAM: binder: perform page installation outside of locks
Split out the insertion of pages to be outside of the alloc->mutex in a
separate binder_install_buffer_pages() routine. Since this is no longer
serialized, we must look at the full range of pages used by the buffers.
The installation is protected with mmap_sem in write mode since multiple
tasks might race to install the same page.

Besides avoiding unnecessary nested locking this helps in preparation of
switching the alloc->mutex into a spinlock_t in subsequent patches.

Signed-off-by: Carlos Llamas <cmllamas@google.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/r/20231201172212.1813387-20-cmllamas@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Bug: 254650075
(cherry picked from commit 37ebbb4f73a0d299fa0c7dd043932a2f5fbbb779)
Change-Id: I7b0684310b8824194d7e4a51a1fd67944f8ec06a
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2024-05-29 20:51:37 +00:00
..
android_debug_symbols.c ANDROID: android: Create debug_symbols driver 2023-06-30 10:39:56 +00:00
binder.c UPSTREAM: binder: remove pid param in binder_alloc_new_buf() 2024-05-29 20:51:37 +00:00
binder_alloc.c UPSTREAM: binder: perform page installation outside of locks 2024-05-29 20:51:37 +00:00
binder_alloc.h UPSTREAM: binder: remove pid param in binder_alloc_new_buf() 2024-05-29 20:51:37 +00:00
binder_alloc_selftest.c UPSTREAM: binder: remove pid param in binder_alloc_new_buf() 2024-05-29 20:51:37 +00:00
binder_internal.h FROMGIT: Binder: Add async from to transaction record 2023-06-07 14:25:07 +00:00
binder_trace.h UPSTREAM: binder: keep vma addresses type as unsigned long 2024-05-29 20:51:37 +00:00
binderfs.c binderfs: rework superblock destruction 2022-09-01 16:18:49 +02:00
debug_kinfo.c ANDROID: Add known structs used by modules to KMI 2024-04-16 13:49:35 -07:00
debug_kinfo.h
Kconfig ANDROID: android: Create debug_symbols driver 2023-06-30 10:39:56 +00:00
Makefile ANDROID: android: Create debug_symbols driver 2023-06-30 10:39:56 +00:00
vendor_hooks.c Revert "ANDROID: Add vendor hooks for binder perf tuning" 2024-05-29 20:51:37 +00:00