Skip to content

Commit f5ca346

Browse files
committed
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>
1 parent a9352f7 commit f5ca346

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎kernel/rcu/tree_plugin.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2005,7 +2005,7 @@ static void nocb_gp_wait(struct rcu_data *my_rdp)
20052005
/* Polling, so trace if first poll in the series. */
20062006
if (gotcbs)
20072007
trace_rcu_nocb_wake(rcu_state.name, cpu, TPS("Poll"));
2008-
schedule_timeout_interruptible(1);
2008+
schedule_timeout_idle(1);
20092009
} else if (!needwait_gp) {
20102010
/* Wait for callbacks to appear. */
20112011
trace_rcu_nocb_wake(rcu_state.name, cpu, TPS("Sleep"));

0 commit comments

Comments
 (0)