1
0
Fork 0

[PATCH] cpusets: only wakeup kswapd for zones in the current cpuset

If we get under some memory pressure in a cpuset (we only scan zones that
are in the cpuset for memory) then kswapd is woken up for all zones.  This
patch only wakes up kswapd in zones that are part of the current cpuset.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Acked-by: Paul Jackson <pj@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
hifive-unleashed-5.1
Christoph Lameter 2006-03-24 03:15:59 -08:00 committed by Linus Torvalds
parent 95c3832272
commit 0b1303fcf2
1 changed files with 2 additions and 1 deletions

View File

@ -943,7 +943,8 @@ restart:
goto got_pg;
do {
wakeup_kswapd(*z, order);
if (cpuset_zone_allowed(*z, gfp_mask))
wakeup_kswapd(*z, order);
} while (*(++z));
/*