UPSTREAM: binder: use per-vma lock in page reclaiming
Use per-vma locking in the shrinker's callback when reclaiming pages, similar to the page installation logic. This minimizes contention with unrelated vmas improving performance. The mmap_sem is still acquired if the per-vma lock cannot be obtained. Cc: Suren Baghdasaryan <surenb@google.com> Suggested-by:Liam R. Howlett <Liam.Howlett@oracle.com> Reviewed-by:
Suren Baghdasaryan <surenb@google.com> Signed-off-by:
Carlos Llamas <cmllamas@google.com> Link: https://lore.kernel.org/r/20241210143114.661252-10-cmllamas@google.com Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Bug: 410746221 Bug: 451778078 (cherry picked from commit 95bc2d4a) Change-Id: I11d07a05e06f837dcf68df763b2eb8cc484a8d7e Signed-off-by:
Carlos Llamas <cmllamas@google.com>
Loading
Please sign in to comment