Skip to content
Commit bfeebe24 authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

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: default avatarPaul E. McKenney <paulmck@kernel.org>
parent 0050c7b2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment