Commit 4a990d10 authored by Dan Yeisley's avatar Dan Yeisley Committed by Adrian Bunk

init_reap_node() initialization fix

It looks like there is a bug in init_reap_node() in slab.c that can cause
multiple oops's on certain ES7000 configurations.  The variable reap_node
is defined per cpu, but only initialized on a single CPU.  This causes an
oops in next_reap_node() when __get_cpu_var(reap_node) returns the wrong
value.  Fix is below.
Signed-off-by: default avatarDan Yeisley <dan.yeisley@unisys.com>
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
parent a9cbeddd
......@@ -806,7 +806,7 @@ static void init_reap_node(int cpu)
if (node == MAX_NUMNODES)
node = 0;
__get_cpu_var(reap_node) = node;
per_cpu(reap_node, cpu) = node;
}
static void next_reap_node(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment