]> git.baikalelectronics.ru Git - kernel.git/commit
mm, numa: avoid setting zone_reclaim_mode unless a node is sufficiently distant
authorDavid Rientjes <rientjes@google.com>
Thu, 25 Oct 2012 20:38:08 +0000 (13:38 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 25 Oct 2012 21:37:53 +0000 (14:37 -0700)
commit3b5f7d7c74beaab1f5dfbcb858534d1f9b862e1f
tree0e1880778fe3d6bc6c8329437ae8ceb7d38ea59f
parentdb344e312073b299d1258f5e3ea3e25bd7843610
mm, numa: avoid setting zone_reclaim_mode unless a node is sufficiently distant

Commit b14554768e39 ("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: David Rientjes <rientjes@google.com>
Reported-by: Julian Wollrath <jwollrath@web.de>
Tested-by: Julian Wollrath <jwollrath@web.de>
Cc: Hugh Dickins <hughd@google.com>
Cc: Patrik Kullman <patrik.kullman@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_alloc.c