mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 22:25:03 +00:00
rcu: Remove failsafe check for lost quiescent state
Now that quiescent-state reporting is fully event-driven, this commit removes the check for a lost quiescent state from force_qs_rnp(). Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
This commit is contained in:
parent
f34f2f5852
commit
17a8212b8d
1 changed files with 3 additions and 13 deletions
|
@ -2317,8 +2317,9 @@ rcu_report_qs_rnp(unsigned long mask, struct rcu_state *rsp,
|
||||||
* irqs disabled, and this lock is released upon return, but irqs remain
|
* irqs disabled, and this lock is released upon return, but irqs remain
|
||||||
* disabled.
|
* disabled.
|
||||||
*/
|
*/
|
||||||
static void rcu_report_unblock_qs_rnp(struct rcu_state *rsp,
|
static void __maybe_unused
|
||||||
struct rcu_node *rnp, unsigned long flags)
|
rcu_report_unblock_qs_rnp(struct rcu_state *rsp,
|
||||||
|
struct rcu_node *rnp, unsigned long flags)
|
||||||
__releases(rnp->lock)
|
__releases(rnp->lock)
|
||||||
{
|
{
|
||||||
unsigned long gps;
|
unsigned long gps;
|
||||||
|
@ -2679,17 +2680,6 @@ static void force_qs_rnp(struct rcu_state *rsp, int (*f)(struct rcu_data *rsp))
|
||||||
/* rcu_initiate_boost() releases rnp->lock */
|
/* rcu_initiate_boost() releases rnp->lock */
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (rnp->parent &&
|
|
||||||
(rnp->parent->qsmask & rnp->grpmask)) {
|
|
||||||
/*
|
|
||||||
* Race between grace-period
|
|
||||||
* initialization and task exiting RCU
|
|
||||||
* read-side critical section: Report.
|
|
||||||
*/
|
|
||||||
rcu_report_unblock_qs_rnp(rsp, rnp, flags);
|
|
||||||
/* rcu_report_unblock_qs_rnp() rlses ->lock */
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
raw_spin_unlock_irqrestore_rcu_node(rnp, flags);
|
raw_spin_unlock_irqrestore_rcu_node(rnp, flags);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue