All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rcu: per-cpu rcuc kthread are created only when rcutree.use_softirq=0
@ 2021-12-28 16:05 Zqiang
  2022-01-01 16:44 ` Paul E. McKenney
  0 siblings, 1 reply; 5+ messages in thread
From: Zqiang @ 2021-12-28 16:05 UTC (permalink / raw)
  To: paulmck, frederic; +Cc: linux-kernel, qiang1.zhang

In non-RT kernel, if the RCU_BOOST is enabled, the per-cpu rcuc
kthread will be created, however under the rcutree.use_softirq=1,
the RCU core processing only in softirq context, the rcuc kthread
doesn't do anything, so remove RCU_BOOST interference.

Signed-off-by: Zqiang <qiang1.zhang@intel.com>
---
 kernel/rcu/tree.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c
index 9b58bae0527a..ed64b4fcb8a0 100644
--- a/kernel/rcu/tree.c
+++ b/kernel/rcu/tree.c
@@ -2902,7 +2902,7 @@ static int __init rcu_spawn_core_kthreads(void)
 
 	for_each_possible_cpu(cpu)
 		per_cpu(rcu_data.rcu_cpu_has_work, cpu) = 0;
-	if (!IS_ENABLED(CONFIG_RCU_BOOST) && use_softirq)
+	if (use_softirq)
 		return 0;
 	WARN_ONCE(smpboot_register_percpu_thread(&rcu_cpu_thread_spec),
 		  "%s: Could not start rcuc kthread, OOM is now expected behavior\n", __func__);
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-01-04  8:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-28 16:05 [PATCH] rcu: per-cpu rcuc kthread are created only when rcutree.use_softirq=0 Zqiang
2022-01-01 16:44 ` Paul E. McKenney
2022-01-03 13:17   ` Sebastian Andrzej Siewior
2022-01-03 14:34     ` Paul E. McKenney
2022-01-04  8:38       ` Zhang, Qiang1

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.