summaryrefslogtreecommitdiffstats
path: root/kernel/rcu/tree_exp.h
diff options
context:
space:
mode:
authorJuri Lelli <juri.lelli@redhat.com>2021-08-10 10:48:15 +0200
committerPaul E. McKenney <paulmck@kernel.org>2021-09-13 16:32:46 -0700
commitebb6d30d9ed1fe7137486e1be2ae9d621e918c4a (patch)
tree8410a44321e9f576f68d2363aab8040ce53223a6 /kernel/rcu/tree_exp.h
parent4aa846f97c0c0d9740d120f9ac3e2fba1522ac0c (diff)
downloadlinux-stable-ebb6d30d9ed1fe7137486e1be2ae9d621e918c4a.tar.gz
linux-stable-ebb6d30d9ed1fe7137486e1be2ae9d621e918c4a.tar.bz2
linux-stable-ebb6d30d9ed1fe7137486e1be2ae9d621e918c4a.zip
rcu: Make rcu_normal_after_boot writable again
Certain configurations (e.g., systems that make heavy use of netns) need to use synchronize_rcu_expedited() to service RCU grace periods even after boot. Even though synchronize_rcu_expedited() has been traditionally considered harmful for RT for the heavy use of IPIs, it is perfectly usable under certain conditions (e.g. nohz_full). Make rcupdate.rcu_normal_after_boot= again writeable on RT (if NO_HZ_ FULL is defined), but keep its default value to 1 (enabled) to avoid regressions. Users who need synchronize_rcu_expedited() will boot with rcupdate.rcu_normal_after_ boot=0 in the kernel cmdline. Reflect the change in synchronize_rcu_expedited_wait() by removing the WARN related to CONFIG_PREEMPT_RT. Signed-off-by: Juri Lelli <juri.lelli@redhat.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'kernel/rcu/tree_exp.h')
-rw-r--r--kernel/rcu/tree_exp.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/rcu/tree_exp.h b/kernel/rcu/tree_exp.h
index 2796084ef85a..d9e4f8eb9ae2 100644
--- a/kernel/rcu/tree_exp.h
+++ b/kernel/rcu/tree_exp.h
@@ -512,7 +512,6 @@ static void synchronize_rcu_expedited_wait(void)
j = READ_ONCE(jiffies_till_first_fqs);
if (synchronize_rcu_expedited_wait_once(j + HZ))
return;
- WARN_ON_ONCE(IS_ENABLED(CONFIG_PREEMPT_RT));
}
for (;;) {