Commit a9f4793d authored by Paul E. McKenney's avatar Paul E. McKenney Committed by Paul E. McKenney

rcu: fix tracing bug thinko on boost-balk attribution

The rcu_initiate_boost_trace() function mis-attributed refusals to
initiate RCU priority boosting that were in fact due to its not yet
being time to boost.  This patch fixes the faulty comparison.
Signed-off-by: default avatarPaul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
parent 90e6ac36
...@@ -1086,7 +1086,7 @@ static void rcu_initiate_boost_trace(struct rcu_node *rnp) ...@@ -1086,7 +1086,7 @@ static void rcu_initiate_boost_trace(struct rcu_node *rnp)
else if (rnp->gp_tasks != NULL && rnp->qsmask != 0) else if (rnp->gp_tasks != NULL && rnp->qsmask != 0)
rnp->n_balk_notblocked++; rnp->n_balk_notblocked++;
else if (rnp->gp_tasks != NULL && else if (rnp->gp_tasks != NULL &&
ULONG_CMP_GE(jiffies, rnp->boost_time)) ULONG_CMP_LT(jiffies, rnp->boost_time))
rnp->n_balk_notyet++; rnp->n_balk_notyet++;
else else
rnp->n_balk_nos++; rnp->n_balk_nos++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment