diff options
author | Weijie Yang <weijie.yang@samsung.com> | 2014-10-10 00:28:12 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-10-10 04:25:57 +0200 |
commit | 7ade3c997208566c5bf50ece8fc319a8caf0d41a (patch) | |
tree | 9932f6503a63a7283c03c281e921502f3ba0b589 /mm/page-writeback.c | |
parent | mm: convert a few VM_BUG_ON callers to VM_BUG_ON_VMA (diff) | |
download | linux-7ade3c997208566c5bf50ece8fc319a8caf0d41a.tar.xz linux-7ade3c997208566c5bf50ece8fc319a8caf0d41a.zip |
mm: page_alloc: avoid wakeup kswapd on the unintended node
When entering the page_alloc slowpath, we wakeup kswapd on every pgdat
according to the zonelist and high_zoneidx. However, this doesn't take
nodemask into account, and could prematurely wakeup kswapd on some
unintended nodes.
This patch uses for_each_zone_zonelist_nodemask() instead of
for_each_zone_zonelist() in wake_all_kswapds() to avoid the above
situation.
Signed-off-by: Weijie Yang <weijie.yang@samsung.com>
Acked-by: Mel Gorman <mgorman@suse.de>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Rik van Riel <riel@redhat.com>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page-writeback.c')
0 files changed, 0 insertions, 0 deletions