OSDN Git Service

rcu: Add *_ONCE() to rcu_node ->boost_kthread_status
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 9 Jan 2020 04:12:59 +0000 (20:12 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 20 Feb 2020 23:58:22 +0000 (15:58 -0800)
commit3ca3b0e2cbe0050d1777a22b7fc13cad620eb2ba
tree49721ba89164cdb071ddadfec90152f6632a2e40
parent2a2ae872ef7aa958f2152b8b24c6e94cf5f1d0df
rcu: Add *_ONCE() to rcu_node ->boost_kthread_status

The rcu_node structure's ->boost_kthread_status field is accessed
locklessly, so this commit causes all updates to use WRITE_ONCE() and
all reads to use READ_ONCE().

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_plugin.h