]> err.no Git - linux-2.6/commitdiff
[PATCH] cpusets: only wakeup kswapd for zones in the current cpuset
authorChristoph Lameter <clameter@engr.sgi.com>
Fri, 24 Mar 2006 11:15:59 +0000 (03:15 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 24 Mar 2006 15:33:22 +0000 (07:33 -0800)
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>
mm/page_alloc.c

index b7f14a4799a52e3881548d91568908f7ed988eb3..a5c3f8bd98ae4edb299966d618c719f47ca175ac 100644 (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));
 
        /*