summaryrefslogtreecommitdiffstats
path: root/kernel/rcu/tree.c
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2019-08-04 13:17:35 -0700
committerPaul E. McKenney <paulmck@kernel.org>2019-10-05 10:46:05 -0700
commit79ba7ff5a9925f5c170f51ed7a96d1475eb6c27f (patch)
treebbc1dd08082d1b70a578c253ca1759ca2d61a4e5 /kernel/rcu/tree.c
parent96926686deab853bcacf887501f4ed958e38666b (diff)
downloadlinux-79ba7ff5a9925f5c170f51ed7a96d1475eb6c27f.tar.gz
linux-79ba7ff5a9925f5c170f51ed7a96d1475eb6c27f.tar.bz2
linux-79ba7ff5a9925f5c170f51ed7a96d1475eb6c27f.zip
rcutorture: Emulate dyntick aspect of userspace nohz_full sojourn
During an actual call_rcu() flood, there would be frequent trips to userspace (in-kernel call_rcu() floods must be otherwise housebroken). Userspace execution on nohz_full CPUs implies an RCU dyntick idle/not-idle transition pair, so this commit adds emulation of that pair. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'kernel/rcu/tree.c')
-rw-r--r--kernel/rcu/tree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c
index 7c67ea561b36..66354ef776aa 100644
--- a/kernel/rcu/tree.c
+++ b/kernel/rcu/tree.c
@@ -375,6 +375,7 @@ void rcu_momentary_dyntick_idle(void)
WARN_ON_ONCE(!(special & RCU_DYNTICK_CTRL_CTR));
rcu_preempt_deferred_qs(current);
}
+EXPORT_SYMBOL_GPL(rcu_momentary_dyntick_idle);
/**
* rcu_is_cpu_rrupt_from_idle - see if interrupted from idle