rcu: Add *_ONCE() to rcu_data ->rcu_forced_tick
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 9 Jan 2020 04:06:25 +0000 (20:06 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 20 Feb 2020 23:58:22 +0000 (15:58 -0800)
commit2a2ae872ef7aa958f2152b8b24c6e94cf5f1d0df
treea63de3362e628049c785189d39daebdbf139fe95
parenta5b8950180f8e5acb802d1672e0b4d0ceee6126e
rcu: Add *_ONCE() to rcu_data ->rcu_forced_tick

The rcu_data structure's ->rcu_forced_tick field is read locklessly, so
this commit adds WRITE_ONCE() to all updates and READ_ONCE() to all
lockless reads.

This data race was reported by KCSAN.  Not appropriate for backporting
due to failure being unlikely.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tree.c