diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-07-25 14:21:47 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-09-16 13:07:59 -0400 |
commit | f4579fc57cf4244057b713b1f73f4dc9f0b11e97 (patch) | |
tree | 7c682f8da323a07e5a6d63ad4ff87cc1baf34e73 /init/main.c | |
parent | 11ed7f934cb807f26da09547b5946c2e534d1dac (diff) |
rcu: Fix attempt to avoid unsolicited offloading of callbacks
Commit b58cc46c5f6b (rcu: Don't offload callbacks unless specifically
requested) failed to adjust the callback lists of the CPUs that are
known to be no-CBs CPUs only because they are also nohz_full= CPUs.
This failure can result in callbacks that are posted during early boot
getting stranded on nxtlist for CPUs whose no-CBs property becomes
apparent late, and there can also be spurious warnings about offline
CPUs posting callbacks.
This commit fixes these problems by adding an early-boot rcu_init_nohz()
that properly initializes the no-CBs CPUs.
Note that kernels built with CONFIG_RCU_NOCB_CPU_ALL=y or with
CONFIG_RCU_NOCB_CPU=n do not exhibit this bug. Neither do kernels
booted without the nohz_full= boot parameter.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Pranith Kumar <bobby.prani@gmail.com>
Tested-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'init/main.c')
-rw-r--r-- | init/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/init/main.c b/init/main.c index bb1aed928f21..e3c4cdd94d5b 100644 --- a/init/main.c +++ b/init/main.c | |||
@@ -578,6 +578,7 @@ asmlinkage __visible void __init start_kernel(void) | |||
578 | idr_init_cache(); | 578 | idr_init_cache(); |
579 | rcu_init(); | 579 | rcu_init(); |
580 | tick_nohz_init(); | 580 | tick_nohz_init(); |
581 | rcu_init_nohz(); | ||
581 | context_tracking_init(); | 582 | context_tracking_init(); |
582 | radix_tree_init(); | 583 | radix_tree_init(); |
583 | /* init some links before init_ISA_irqs() */ | 584 | /* init some links before init_ISA_irqs() */ |