Skip to content

Commit 2130c6b

Browse files
committed
nocb: Remove show_rcu_nocb_state() false positive printout
The rcu_data structure's ->nocb_timer field is used to defer wakeups of the corresponding no-CBs CPU's grace-period kthread ("rcuog*"), and that structure's ->nocb_defer_wakeup field is used to track such deferral. This means that the show_rcu_nocb_state() printing an error when those fields are set for a CPU not corresponding to a no-CBs grace-period kthread is erroneous. This commit therefore switches the check from ->nocb_timer to ->nocb_bypass_timer and removes the check of ->nocb_defer_wakeup. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
1 parent 9b1ce0a commit 2130c6b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎kernel/rcu/tree_plugin.h‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2411,10 +2411,9 @@ static void show_rcu_nocb_state(struct rcu_data *rdp)
24112411
return;
24122412

24132413
waslocked = raw_spin_is_locked(&rdp->nocb_gp_lock);
2414-
wastimer = timer_pending(&rdp->nocb_timer);
2414+
wastimer = timer_pending(&rdp->nocb_bypass_timer);
24152415
wassleep = swait_active(&rdp->nocb_gp_wq);
2416-
if (!rdp->nocb_defer_wakeup && !rdp->nocb_gp_sleep &&
2417-
!waslocked && !wastimer && !wassleep)
2416+
if (!rdp->nocb_gp_sleep && !waslocked && !wastimer && !wassleep)
24182417
return; /* Nothing untowards. */
24192418

24202419
pr_info(" nocb GP activity on CB-only CPU!!! %c%c%c%c %c\n",

0 commit comments

Comments
 (0)