Skip to content
Commit 35ce7f29 authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

rcu: Create rcuo kthreads only for onlined CPUs



RCU currently uses for_each_possible_cpu() to spawn rcuo kthreads,
which can result in more rcuo kthreads than one would expect, for
example, derRichard reported 64 CPUs worth of rcuo kthreads on an
8-CPU image.  This commit therefore creates rcuo kthreads only for
those CPUs that actually come online.

This was reported by derRichard on the OFTC IRC network.

Reported-by: default avatarRichard Weinberger <richard@nod.at>
Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
Tested-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent 9386c0b7
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