BACKPORT: FROMGIT: Revert "binder_alloc: add missing mmap_lock calls when using the VMA"
This reverts commit 44e602b4. 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: 44e602b4 ("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> Bug: 284244471 Bug: 284081259 Bug: 274561072 (cherry picked from commit 02ec549bdac3e58dcee65fb0526487b22fb757b6 git: //git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git char-misc-linus) [cmllamas: original revert applies cleanly] Change-Id: I9bc61b9ff1f9fa7931e2b2b87dde01aa89906e9f Signed-off-by:
Carlos Llamas <cmllamas@google.com>
Loading
Please sign in to comment