rcu: Remove expedited grace-period fast-path forward-progress helper
authorPaul E. McKenney <paulmck@kernel.org>
Fri, 5 Aug 2022 00:34:30 +0000 (17:34 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Wed, 31 Aug 2022 12:09:21 +0000 (05:09 -0700)
Now that the expedited grace-period fast path can only happen during
the pre-scheduler portion of early boot, this fast path can no longer
block run-time RCU Trace grace periods.  This commit therefore removes
the conditional cond_resched() invocation.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tree_exp.h

index 9c0ae834ef076af2e53e5274d81605cc9fa1299a..1a51f9301ebff7a3b192942cb9856e0762f3c88e 100644 (file)
@@ -924,8 +924,6 @@ void synchronize_rcu_expedited(void)
                // them, which allows reuse of ->gp_seq_polled_exp_snap.
                rcu_poll_gp_seq_start_unlocked(&rcu_state.gp_seq_polled_exp_snap);
                rcu_poll_gp_seq_end_unlocked(&rcu_state.gp_seq_polled_exp_snap);
-               if (rcu_init_invoked())
-                       cond_resched();
                return;  // Context allows vacuous grace periods.
        }