summaryrefslogtreecommitdiffstats
path: root/kernel/rcu/tree_plugin.h
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2020-01-03 16:14:08 -0800
committerPaul E. McKenney <paulmck@kernel.org>2020-02-20 15:58:22 -0800
commitbfeebe24212d374f82bbf5b005371fe13acabb93 (patch)
tree4184f7f2cf3a5e49bb0a309bf6f664fafd6c44e1 /kernel/rcu/tree_plugin.h
parent0050c7b2d27c3cc126df59bd8094fb3d25b00ade (diff)
downloadlinux-stable-bfeebe24212d374f82bbf5b005371fe13acabb93.tar.gz
linux-stable-bfeebe24212d374f82bbf5b005371fe13acabb93.tar.bz2
linux-stable-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