Commit e75e1c68 authored by Carlos Llamas's avatar Carlos Llamas Committed by jing Liu
Browse files

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: default avatarLiam R. Howlett <Liam.Howlett@oracle.com>
Reviewed-by: default avatarSuren Baghdasaryan <surenb@google.com>
Signed-off-by: default avatarCarlos Llamas <cmllamas@google.com>
Link: https://lore.kernel.org/r/20241210143114.661252-10-cmllamas@google.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

Bug: 444079265
Bug: 410746221
(cherry picked from commit 95bc2d4a)
Change-Id: I11d07a05e06f837dcf68df763b2eb8cc484a8d7e
Signed-off-by: default avatarCarlos Llamas <cmllamas@google.com>
(cherry picked from commit ee25d80f)
parent 29829e16
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment