提交 6b187d02 编写于 作者: D David Rientjes 提交者: Linus Torvalds

mm, numa: avoid setting zone_reclaim_mode unless a node is sufficiently distant

Commit 957f822a ("mm, numa: reclaim from all nodes within reclaim
distance") caused zone_reclaim_mode to be set for all systems where two
nodes are within RECLAIM_DISTANCE of each other.  This is the opposite
of what we actually want: zone_reclaim_mode should be set if two nodes
are sufficiently distant.
Signed-off-by: NDavid Rientjes <rientjes@google.com>
Reported-by: NJulian Wollrath <jwollrath@web.de>
Tested-by: NJulian Wollrath <jwollrath@web.de>
Cc: Hugh Dickins <hughd@google.com>
Cc: Patrik Kullman <patrik.kullman@gmail.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 f2302505
...@@ -1809,10 +1809,10 @@ static void __paginginit init_zone_allows_reclaim(int nid) ...@@ -1809,10 +1809,10 @@ static void __paginginit init_zone_allows_reclaim(int nid)
int i; int i;
for_each_online_node(i) for_each_online_node(i)
if (node_distance(nid, i) <= RECLAIM_DISTANCE) { if (node_distance(nid, i) <= RECLAIM_DISTANCE)
node_set(i, NODE_DATA(nid)->reclaim_nodes); node_set(i, NODE_DATA(nid)->reclaim_nodes);
else
zone_reclaim_mode = 1; zone_reclaim_mode = 1;
}
} }
#else /* CONFIG_NUMA */ #else /* CONFIG_NUMA */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册