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

rcu: Optimize and protect atomic_cmpxchg() loop



This commit reworks the atomic_cmpxchg() loop in rcu_eqs_special_set()
to do only the initial read from the current CPU's rcu_data structure's
->dynticks field explicitly.  On subsequent passes, this value is instead
retained from the failing atomic_cmpxchg() operation.

Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
parent 92c0b889
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