diff options
author | Paul E. McKenney <paulmck@kernel.org> | 2020-01-04 02:22:01 +0300 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2020-04-27 21:01:16 +0300 |
commit | 065a6db12a80fac4eccc37e6bef14b0f4a610f31 (patch) | |
tree | 8fcb9c6a2f1586bbf45be1e8bfbd86a82ebdd3f1 /kernel/rcu/srcutree.c | |
parent | 314eeb43e5f22856b281c91c966e51e5782a3498 (diff) |
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>
Diffstat (limited to 'kernel/rcu/srcutree.c')
0 files changed, 0 insertions, 0 deletions