diff options
author | Lokesh Gidra <lokeshgidra@google.com> | 2024-03-08 10:59:56 -0800 |
---|---|---|
committer | Jhih-Chen Huang <jhihchen@google.com> | 2024-03-27 08:38:55 +0000 |
commit | ead815ea2dadd5f1c09e0034071026f720eb9d1b (patch) | |
tree | 0bba7e6bb6d6746b9db16b240a8553b8447ce291 /build.config.gki-debug.x86_64 | |
parent | 3c895b485291acef90721fe82d02a1c2dca99444 (diff) | |
download | common-android14-5.15-2024-03_r2.tar.gz |
ANDROID: userfaultfd: abort uffdio ops if mmap_lock is contendedandroid14-5.15-2024-03_r2
Check if the mmap_lock is contended when looping over the pages that
are requested to be filled. When it is observed, we rely on the already
existing mechanism to return bytes copied/filled and -EAGAIN as error.
This helps by avoiding contention of mmap_lock for long running
userfaultfd operations. The userspace can perform other tasks before
retrying the operation for the remaining pages.
Bug: 320478828
Bug: 331530152
Signed-off-by: Lokesh Gidra <lokeshgidra@google.com>
(cherry picked from https://android-review.googlesource.com/q/commit:96305e30e970c4676b89cfebd671934485107716)
Merged-In: I6d485fd03c96a826956ee3962e58058be3cf81c1
Change-Id: I6d485fd03c96a826956ee3962e58058be3cf81c1
Diffstat (limited to 'build.config.gki-debug.x86_64')
0 files changed, 0 insertions, 0 deletions