| Submitter | KOSAKI Motohiro |
|---|---|
| Date | May 18, 2011, 6:05 a.m. |
| Message ID | <4DD361C0.5030904@jp.fujitsu.com> |
| Download | mbox | patch |
| Permalink | /patch/96127/ |
| State | Not Applicable |
| Headers | show |
Comments
Patch
diff --git a/mm/vmscan.c b/mm/vmscan.c index 19e179b..87c88fd 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -2449,6 +2449,7 @@ loop_again: sc.nr_reclaimed += reclaim_state->reclaimed_slab; total_scanned += sc.nr_scanned; + cond_resched(); if (zone->all_unreclaimable) continue; if (nr_slab == 0 && @@ -2518,8 +2519,6 @@ out: * for the node to be balanced */ if (!(all_zones_ok || (order && pgdat_balanced(pgdat, balanced, *classzone_idx)))) { - cond_resched(); - try_to_freeze(); /*