Commit f4860f23 authored by Minchan Kim's avatar Minchan Kim
Browse files

mali_kbase: bail out shrinking if the lock is contended



If the mmu_lock is contended for a long time in shrinking process
under kswapd context(e.g., lock holder was cpu.share limited
so it took 100ms to release the lock), kswapd is stuck on the lock.
It's not good because it causes more memory pressure in the system.

This patch makes the shrinking functino aware of kswapd context
to bail out if it's the case for kswapd to proceed reclaiming
with other reclaimable memory.

Bug: 201414237
Signed-off-by: default avatarMinchan Kim <minchan@google.com>
Change-Id: Id9e08873def1cf63022937b88af45531d76e2d96
parent aec9b53c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment