提交 0b1303fc 编写于 作者: C Christoph Lameter 提交者: 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: NChristoph Lameter <clameter@sgi.com>
Acked-by: NPaul Jackson <pj@sgi.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册