From: Paul E. McKenney Date: Thu, 7 May 2020 23:36:10 +0000 (-0700) Subject: rcu: No-CBs-related sleeps to idle priority X-Git-Tag: howlett/maple_spf/20210104~1405^2^2^2~14 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=f5ca34643bbd84f514bdeee194c45dd1fb066ef2;p=users%2Fjedix%2Flinux-maple.git 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 --- diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h index 25296c17a30df..982fc5be52698 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"));