diff options
| author | Jesse Barnes <jbarnes@engr.sgi.com> | 2004-11-07 03:39:22 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-11-07 03:39:22 -0800 |
| commit | ab8b6bc23e496dcb823c6a129f316cb5babb0085 (patch) | |
| tree | 7598f4903d7c01bfba36ab62fd6406017fa63177 /include/linux | |
| parent | afcb4504418b6312c5c916b379a4a28edfb16a4e (diff) | |
[PATCH] fix find_next_best_node()
If NUMA is enabled, find_next_best_node is responsible for helping build
the zonelist for each pgdat in the system. However, if one sets
PENALTY_FOR_NODE_WITH_CPUS to a large value in an attempt to prefer nodes
w/o CPUs, the local node is erroneously placed after all nodes w/o CPUs in
the pgdat's zonelist. This small patch fixes that by just checking if the
local node is part of the zonelist yet, and if not, returns it first.
Signed-off-by: Jesse Barnes <jbarnes@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
