mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] rcu: When rcuog kthreads is in polling mode, wakeup waitqueue is not requried
@ 2022-01-28  3:13 Zqiang
  2022-01-29  5:17 ` Paul E. McKenney
  0 siblings, 1 reply; 5+ messages in thread
From: Zqiang @ 2022-01-28  3:13 UTC (permalink / raw)
  To: paulmck, frederic; +Cc: linux-kernel, qiang1.zhang

When grace period cleanup, the rcuog kthreads that waiting in sq
waitqueue will be awakened, however if the 'rcu_nocb_poll' is set,
the sq waitqueue always empty, so if 'rcu_nocb_poll' is set, return
directly.

Signed-off-by: Zqiang <qiang1.zhang@intel.com>
---
 kernel/rcu/tree_nocb.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/kernel/rcu/tree_nocb.h b/kernel/rcu/tree_nocb.h
index 636d0546a4e9..9e106c590e56 100644
--- a/kernel/rcu/tree_nocb.h
+++ b/kernel/rcu/tree_nocb.h
@@ -201,6 +201,8 @@ static void rcu_lockdep_assert_cblist_protected(struct rcu_data *rdp)
  */
 static void rcu_nocb_gp_cleanup(struct swait_queue_head *sq)
 {
+	if (rcu_nocb_poll)
+		return;
 	swake_up_all(sq);
 }
 
-- 
2.25.1


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

end of thread, other threads:[~2022-01-30  2:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-28  3:13 [PATCH] rcu: When rcuog kthreads is in polling mode, wakeup waitqueue is not requried Zqiang
2022-01-29  5:17 ` Paul E. McKenney
2022-01-29  5:55   ` Zhang, Qiang1
2022-01-29 16:37     ` Paul E. McKenney
2022-01-30  2:18       ` Zhang, Qiang1

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®