Commit f5ca3464 authored by Paul E. McKenney's avatar Paul E. McKenney

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: default avatarPaul E. McKenney <paulmck@kernel.org>
parent a9352f72
...@@ -2005,7 +2005,7 @@ static void nocb_gp_wait(struct rcu_data *my_rdp) ...@@ -2005,7 +2005,7 @@ static void nocb_gp_wait(struct rcu_data *my_rdp)
/* Polling, so trace if first poll in the series. */ /* Polling, so trace if first poll in the series. */
if (gotcbs) if (gotcbs)
trace_rcu_nocb_wake(rcu_state.name, cpu, TPS("Poll")); trace_rcu_nocb_wake(rcu_state.name, cpu, TPS("Poll"));
schedule_timeout_interruptible(1); schedule_timeout_idle(1);
} else if (!needwait_gp) { } else if (!needwait_gp) {
/* Wait for callbacks to appear. */ /* Wait for callbacks to appear. */
trace_rcu_nocb_wake(rcu_state.name, cpu, TPS("Sleep")); trace_rcu_nocb_wake(rcu_state.name, cpu, TPS("Sleep"));
......
Markdown is supported
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