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

rcu/nocb: Enable re-awakening under high callback load



The __call_rcu_nocb_wake() function and its predecessors set
->qlen_last_fqs_check to zero for the first callback and to LONG_MAX / 2
for forced reawakenings.  The former can result in a too-quick reawakening
when there are many callbacks ready to invoke and the latter prevents a
second reawakening.  This commit therefore sets ->qlen_last_fqs_check
to the current number of callbacks in both cases.  While in the area,
this commit also moves both assignments under ->nocb_lock.

Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.ibm.com>
parent 0bd55c69
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment