Skip to content
Commit 383e1332 authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

rcu/nocb: Never downgrade ->nocb_defer_wakeup in wake_nocb_gp_defer()



Currently, wake_nocb_gp_defer() simply stores whatever waketype was
passed in, which can result in a RCU_NOCB_WAKE_FORCE being downgraded
to RCU_NOCB_WAKE, which could in turn delay callback processing.
This commit therefore adds a check so that wake_nocb_gp_defer() only
updates ->nocb_defer_wakeup when the update increases the forcefulness,
thus avoiding downgrades.

Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.ibm.com>
parent aeeacd9d
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