Commit 9f6cb7cd authored by Qais Yousef's avatar Qais Yousef Committed by John Stultz
Browse files

ANDROID: fs/proc: Perform priority inheritance around access_remote_vm()



It holds mmap_sem lock which is a hot path. Some debug daemons can end
up holding this lock to get the cmdline of a process, which can result
in slowing down this process.

Add hooks around the calls to allow vendors to implement a simple prio
inheritance scheme to deal with this.

Bug: 344826816
Bug: 289412815
Signed-off-by: default avatarQais Yousef <qyousef@google.com>
Change-Id: I160637b30e5bd58d5978b25be8a21ce025175ec3
(cherry picked from commit b821a3c8)
[Trivial conflict in include/trace/hooks/sched.h due to new code added.
And in vendor_hooks.c due to code ordering]
Signed-off-by: default avatarQais Yousef <qyousef@google.com>
parent 9ad961ed
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment