mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-09-21 20:04:01 +00:00
mm: process_reclaim: use unbounded cpu workqueue
It is observed that in some cases process reclaim work doesn't get chance to run due to presence of RT scheduled on the same CPU. This is leading to user space freeze and a live-lock situation where RT itself is looping for a page to be present in swap cache while process reclaim work is unable to schedule and do the same. Schedule process reclaim work on unbounded cpu workqueue so that the work has opportunity to be scheduled on to other cpu. Change-Id: I6852f7e8d0a344ab5631b188627263f11414f27e Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
This commit is contained in:
parent
0372629377
commit
b1b162e675
1 changed files with 1 additions and 1 deletions
|
@ -230,7 +230,7 @@ static int vmpressure_notifier(struct notifier_block *nb,
|
|||
|
||||
if ((pressure >= pressure_min) && (pressure < pressure_max))
|
||||
if (!work_pending(&swap_work))
|
||||
schedule_work(&swap_work);
|
||||
queue_work(system_unbound_wq, &swap_work);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue