commit | faa059c397dec8a452c79e9dba64419113ea64e2 | [log] [tgz] |
---|---|---|
author | Paul E. McKenney <paulmck@kernel.org> | Mon Feb 03 14:20:00 2020 -0800 |
committer | Paul E. McKenney <paulmck@kernel.org> | Thu Feb 20 15:58:23 2020 -0800 |
tree | 14e7cbd40cf86f678ff2e373323cfe0469939d26 | |
parent | 92c0b889f2ff6898710d49458b6eae1de50895c6 [diff] |
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: Paul E. McKenney <paulmck@kernel.org>