Repository navigation
Commit 7ade3c9
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>1 parent 81d1b09 commit 7ade3c9
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2471 | 2471 | | |
2472 | 2472 | | |
2473 | 2473 | | |
2474 | | - | |
| 2474 | + | |
| 2475 | + | |
2475 | 2476 | | |
2476 | 2477 | | |
2477 | 2478 | | |
2478 | 2479 | | |
2479 | | - | |
| 2480 | + | |
| 2481 | + | |
2480 | 2482 | | |
2481 | 2483 | | |
2482 | 2484 | | |
| |||
2574 | 2576 | | |
2575 | 2577 | | |
2576 | 2578 | | |
2577 | | - | |
| 2579 | + | |
| 2580 | + | |
2578 | 2581 | | |
2579 | 2582 | | |
2580 | 2583 | | |
| |||
0 commit comments