]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "binder_alloc: add missing mmap_lock calls when using the VMA"
authorCarlos Llamas <cmllamas@google.com>
Tue, 2 May 2023 20:12:17 +0000 (20:12 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 May 2023 13:03:19 +0000 (14:03 +0100)
commit404ae5b07c6397b9168fdd8d3e83995535990924
tree51a8f72bd9854426fdaeb960dffc393829f30171
parentd590b8e7e5bfecdcfe84dbccbc3c769c934c625c
Revert "binder_alloc: add missing mmap_lock calls when using the VMA"

commit b15655b12ddca7ade09807f790bafb6fab61b50a upstream.

This reverts commit 1561d3aedb2055491040f88e52e8449e6338ba6b.

This caused a performance regression particularly when pages are getting
reclaimed. We don't need to acquire the mmap_lock to determine when the
binder buffer has been fully initialized. A subsequent patch will bring
back the lockless approach for this.

[cmllamas: resolved trivial conflicts with renaming of alloc->mm]

Fixes: 1561d3aedb20 ("binder_alloc: add missing mmap_lock calls when using the VMA")
Cc: Liam Howlett <liam.howlett@oracle.com>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: stable@vger.kernel.org
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Link: https://lore.kernel.org/r/20230502201220.1756319-1-cmllamas@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder_alloc.c