diff options
| author | Carlos Llamas <[email protected]> | 2023-12-01 17:21:48 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2023-12-05 09:23:40 +0900 |
| commit | 37ebbb4f73a0d299fa0c7dd043932a2f5fbbb779 (patch) | |
| tree | 34e8270e313133b3a5bdd36bb4e9b9f90ad54940 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 68aef12d094e4c96d972790f1620415460a4f3cf (diff) | |
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 <[email protected]>
Reviewed-by: Alice Ryhl <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions