You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When going through the lazy-rcu work, I noticed that
rcu_barrier_entrain() does not really wake up the rcuog GP thread in any
path after entraining. This means it is possible the GP thread is not
awakened soon (say there were no CBs in the cblist after entraining
time).
Further, nothing appears to be calling the rcu_barrier callback
directly in the case the ->cblist was empty which means if the IPI gets
delayed enough to make the ->cblist empty and it turns out to be the last
CPU holding, then nothing calls completes rcu_state.barrier_completion.
Fix both these issues.
A note on the wakeup, there are 3 cases AFAICS after the call to
rcu_nocb_flush_bypass():
1. The rdp->cblist has pending CBs.
2. The rdp->cblist has all done CBs.
3. The rdp->cblist has no CBs at all (say the IPI took a long time to
arrive and some other path dequeued them in the meanwhile).
For #3, entraining a CB is not needed and we should bail. For #1 and
needed. But for #2 it is needed.
Signed-off-by: Joel Fernandes (Google) <[email protected]>
0 commit comments