Commit cc7f9893 authored by Suren Baghdasaryan's avatar Suren Baghdasaryan Committed by Jhih-Chen Huang
Browse files

ANDROID: mm: allow limited speculative page faulting in do_swap_page()



Speculative page handling was disabled in do_swap_page() because it was
unsafe to call migration_entry_wait(). Another calls which are not safe
without taking mmap_lock are ksm_might_need_to_copy() because it relies
on the VMA being stable and readahead. However if we avoid these cases,
the rest seems to be safe. Relax the check to avoid only these unsafe
cases and allow speculation otherwise.

Bug: 322762567
Bug: 329781167
Change-Id: Ic1fda0a5549088d5f37004dbacf3193116a5f868
Signed-off-by: default avatarSuren Baghdasaryan <surenb@google.com>
(cherry picked from commit d47a714f)
parent f7559871
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment