Linux RCU subsystem development
 help / color / mirror / Atom feed
* [PATCH] rcu: remove unnecessary check cpu_no_qs.norm on rcu_report_qs_rdp
@ 2023-07-21 12:15 Levi Yun
  2023-07-21 21:43 ` Paul E. McKenney
  0 siblings, 1 reply; 12+ messages in thread
From: Levi Yun @ 2023-07-21 12:15 UTC (permalink / raw)
  To: paulmck, frederic, quic_neeraju, joel, osh, boqun.feng, rostedt,
	mathieu.desnoyers, jiangshanlai, qiang.zhang1211
  Cc: Levi Yun, rcu, linux-kernel

Wherever rcu_report_qs_rdp is called, cpu_no_qs.norm value is false.
Therefore, Remove unnecessary check in rcu_report_qs_rdp.

Signed-off-by: Levi Yun <ppbuk5246@gmail.com>
---
 kernel/rcu/tree.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c
index 1449cb69a0e0..d840596e9903 100644
--- a/kernel/rcu/tree.c
+++ b/kernel/rcu/tree.c
@@ -1962,8 +1962,7 @@ rcu_report_qs_rdp(struct rcu_data *rdp)
 	WARN_ON_ONCE(rdp->cpu != smp_processor_id());
 	rnp = rdp->mynode;
 	raw_spin_lock_irqsave_rcu_node(rnp, flags);
-	if (rdp->cpu_no_qs.b.norm || rdp->gp_seq != rnp->gp_seq ||
-	    rdp->gpwrap) {
+	if (rdp->gp_seq != rnp->gp_seq || rdp->gpwrap) {

 		/*
 		 * The grace period in which this quiescent state was
--
2.37.2

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

end of thread, other threads:[~2023-07-24  9:00 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-21 12:15 [PATCH] rcu: remove unnecessary check cpu_no_qs.norm on rcu_report_qs_rdp Levi Yun
2023-07-21 21:43 ` Paul E. McKenney
2023-07-22  9:23   ` Yun Levi
2023-07-22 17:40     ` Paul E. McKenney
2023-07-22 20:14       ` Yun Levi
2023-07-22 22:39         ` Paul E. McKenney
2023-07-23  6:23           ` Yun Levi
2023-07-23 17:24             ` Paul E. McKenney
2023-07-24  3:21             ` Z qiang
2023-07-24  5:28               ` Yun Levi
2023-07-24  6:48                 ` Z qiang
2023-07-24  8:59                   ` Yun Levi

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