Browse Source

rcu: Remove dead code from force_qs_rnp()

Because force_qs_rnp() is invoked only from the force-quiescent-state
code which runs only in the context of the grace-period kthread, a grace
period must always be in progress throughout force_qs_rnp()'s execution.
This commit therefore removes the rcu_gp_in_progress() check and the
associated dead code.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Paul E. McKenney 10 years ago
parent
commit
c5b5539506
1 changed files with 0 additions and 4 deletions
  1. 0 4
      kernel/rcu/tree.c

+ 0 - 4
kernel/rcu/tree.c

@@ -2720,10 +2720,6 @@ static void force_qs_rnp(struct rcu_state *rsp,
 		mask = 0;
 		mask = 0;
 		raw_spin_lock_irqsave(&rnp->lock, flags);
 		raw_spin_lock_irqsave(&rnp->lock, flags);
 		smp_mb__after_unlock_lock();
 		smp_mb__after_unlock_lock();
-		if (!rcu_gp_in_progress(rsp)) {
-			raw_spin_unlock_irqrestore(&rnp->lock, flags);
-			return;
-		}
 		if (rnp->qsmask == 0) {
 		if (rnp->qsmask == 0) {
 			if (rcu_state_p == &rcu_sched_state ||
 			if (rcu_state_p == &rcu_sched_state ||
 			    rsp != rcu_state_p ||
 			    rsp != rcu_state_p ||