]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
rcu: Priority-boost-related sleeps to idle priority
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 7 May 2020 23:34:38 +0000 (16:34 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 29 Jun 2020 18:58:50 +0000 (11:58 -0700)
This commit converts the long-standing schedule_timeout_interruptible()
call used by RCU's priority-boosting 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>
kernel/rcu/tree_plugin.h

index 352223664ebdc769bf1c171885d292e31a9a105b..25296c17a30df228f71d82e4942e85634b9fa9fb 100644 (file)
@@ -1033,7 +1033,7 @@ static int rcu_boost_kthread(void *arg)
                if (spincnt > 10) {
                        WRITE_ONCE(rnp->boost_kthread_status, RCU_KTHREAD_YIELDING);
                        trace_rcu_utilization(TPS("End boost kthread@rcu_yield"));
-                       schedule_timeout_interruptible(2);
+                       schedule_timeout_idle(2);
                        trace_rcu_utilization(TPS("Start boost kthread@rcu_yield"));
                        spincnt = 0;
                }