diff options
author | Paul E. McKenney <paulmck@kernel.org> | 2020-05-07 16:36:10 -0700 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2020-06-29 11:58:50 -0700 |
commit | f5ca34643bbd84f514bdeee194c45dd1fb066ef2 (patch) | |
tree | ceca672383bc45f81616df15d198c311b19f4480 /kernel/rcu | |
parent | a9352f72d6a9e8fe4840b9f0d97af8f5a6c52c79 (diff) | |
download | lwn-f5ca34643bbd84f514bdeee194c45dd1fb066ef2.tar.gz lwn-f5ca34643bbd84f514bdeee194c45dd1fb066ef2.zip |
rcu: No-CBs-related sleeps to idle priority
This commit converts the schedule_timeout_interruptible() call used by
RCU's no-CBs grace-period kthreads to schedule_timeout_idle(). This
conversion avoids polluting the load-average with RCU-related sleeping.
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'kernel/rcu')
-rw-r--r-- | kernel/rcu/tree_plugin.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h index 25296c17a30d..982fc5be5269 100644 --- a/kernel/rcu/tree_plugin.h +++ b/kernel/rcu/tree_plugin.h @@ -2005,7 +2005,7 @@ static void nocb_gp_wait(struct rcu_data *my_rdp) /* Polling, so trace if first poll in the series. */ if (gotcbs) trace_rcu_nocb_wake(rcu_state.name, cpu, TPS("Poll")); - schedule_timeout_interruptible(1); + schedule_timeout_idle(1); } else if (!needwait_gp) { /* Wait for callbacks to appear. */ trace_rcu_nocb_wake(rcu_state.name, cpu, TPS("Sleep")); |