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

Skip to content
Commit 05b7b7c7 authored by Zhenhua Huang's avatar Zhenhua Huang
Browse files

mm: give up CPU when swap cache in inconsistence state



The case is for __read_swap_cache_async():
If swap cache is deleted by __delete_from_swap_cache(), but
SWAP_HAS_CACHE flag not cleared yet by swapcache_free(). eg,
when sched out in delete_from_swap_cache(), or __remove_mapping().
In the mean time, current process unfortunately is RT,
then cond_sched() may not working. Introduce using usleep(500, 1000)
to give up CPU to another task.

CRs-Fixed: 2285534
Change-Id: Icf55fc2b01d95a552d3f3651c2d78d115fd17b1f
Signed-off-by: default avatarZhenhua Huang <zhenhuah@codeaurora.org>
parent f5feb668
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