rcu: Add READ_ONCE and data_race() to rcu_node ->boost_tasks
authorPaul E. McKenney <paulmck@kernel.org>
Fri, 3 Jan 2020 23:22:01 +0000 (15:22 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 27 Apr 2020 18:01:16 +0000 (11:01 -0700)
commit065a6db12a80fac4eccc37e6bef14b0f4a610f31
tree8fcb9c6a2f1586bbf45be1e8bfbd86a82ebdd3f1
parent314eeb43e5f22856b281c91c966e51e5782a3498
rcu: Add READ_ONCE and data_race() to rcu_node ->boost_tasks

The rcu_node structure's ->boost_tasks field is read locklessly, so this
commit adds the READ_ONCE() to one load in order to avoid destructive
compiler optimizations.  The other load is from a diagnostic print,
so data_race() suffices.

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