mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[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 <[email protected]> Acked-by: Paul Jackson <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
95c3832272
commit
0b1303fcf2
1 changed files with 2 additions and 1 deletions
|
|
@ -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));
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue