summaryrefslogtreecommitdiffstats
path: root/kernel/rcu/tree_plugin.h
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2020-01-04 01:14:08 +0100
committerPaul E. McKenney <paulmck@kernel.org>2020-02-21 00:58:22 +0100
commitbfeebe24212d374f82bbf5b005371fe13acabb93 (patch)
tree4184f7f2cf3a5e49bb0a309bf6f664fafd6c44e1 /kernel/rcu/tree_plugin.h
parentlocking/rtmutex: rcu: Add WRITE_ONCE() to rt_mutex ->owner (diff)
downloadlinux-bfeebe24212d374f82bbf5b005371fe13acabb93.tar.xz
linux-bfeebe24212d374f82bbf5b005371fe13acabb93.zip
rcu: Add READ_ONCE() to rcu_segcblist ->tails[]
The rcu_segcblist structure's ->tails[] array entries are read locklessly, so this commit adds the READ_ONCE() to a load in order to avoid destructive compiler optimizations. This data race was reported by KCSAN. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'kernel/rcu/tree_plugin.h')
0 files changed, 0 insertions, 0 deletions