--- a/mm/vmscan.c.orig 2016-11-30 21:52:58.314895320 +0300 +++ b/mm/vmscan.c 2016-11-30 21:53:29.502895320 +0300 @@ -2352,6 +2352,7 @@ nr_reclaimed += shrink_list(lru, nr_to_scan, lruvec, sc); } + cond_resched(); } if (nr_reclaimed < nr_to_reclaim || scan_adjusted)