Commit a0b6273e authored by Lokesh Gidra's avatar Lokesh Gidra
Browse files

ANDROID: userfaultfd: abort uffdio ops if mmap_lock is contended



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
Change-Id: I6d485fd03c96a826956ee3962e58058be3cf81c1
Signed-off-by: default avatarLokesh Gidra <lokeshgidra@google.com>
parent e3aabbf8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment