Commit 0b1303fc authored by Christoph Lameter's avatar Christoph Lameter Committed by Linus Torvalds

[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: default avatarChristoph Lameter <clameter@sgi.com>
Acked-by: default avatarPaul Jackson <pj@sgi.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 95c38322
......@@ -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));
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment