diff options
| author | Paul E. McKenney <paulmck@kernel.org> | 2020-01-03 15:22:01 -0800 |
|---|---|---|
| committer | Paul E. McKenney <paulmck@kernel.org> | 2020-04-27 11:01:16 -0700 |
| commit | 065a6db12a80fac4eccc37e6bef14b0f4a610f31 (patch) | |
| tree | 8fcb9c6a2f1586bbf45be1e8bfbd86a82ebdd3f1 /tools/testing/selftests/bpf/prog_tests/stacktrace_map_raw_tp.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 'tools/testing/selftests/bpf/prog_tests/stacktrace_map_raw_tp.c')
0 files changed, 0 insertions, 0 deletions
