Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9632fcbc authored by Sherry Yang's avatar Sherry Yang
Browse files

FROMLIST: android: binder: Drop lru lock in isolate callback

(from https://patchwork.kernel.org/patch/9945123/

)

Drop the global lru lock in isolate callback
before calling zap_page_range which calls
cond_resched, and re-acquire the global lru
lock before returning. Also change return
code to LRU_REMOVED_RETRY.

Use mmput_async when fail to acquire mmap sem
in an atomic context.

Fix "BUG: sleeping function called from invalid context"
errors when CONFIG_DEBUG_ATOMIC_SLEEP is enabled.

Bug: 63926541
Fixes: f2517eb76f1f2 ("android: binder: Add global lru shrinker to binder")
Change-Id: Iacbacd26c0326e20baebe193551324859300f7f6
Reported-by: default avatarKyle Yan <kyan@codeaurora.org>
Acked-by: default avatarArve Hjønnevåg <arve@android.com>
Signed-off-by: default avatarSherry Yang <sherryy@android.com>
parent add4d3e5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment