[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>
This commit is contained in:
Christoph Lameter 2006-03-24 03:15:59 -08:00 committed by Linus Torvalds
parent 95c3832272
commit 0b1303fcf2

View file

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