commit | 7b6eda928104ac525446ae6173aff38c82585c1a | [log] [tgz] |
---|---|---|
author | Paul E. McKenney <paulmck@kernel.org> | Tue Jan 07 15:48:39 2020 -0800 |
committer | Paul E. McKenney <paulmck@kernel.org> | Tue Jan 07 15:48:39 2020 -0800 |
tree | 1b60ff8c706492148c64d04285e1eeadc11035c8 | |
parent | 3b15c92c866c43af51a5b2b98cccabd979cd449d [diff] |
rcu: Add READ_ONCE() to rcu_data ->gpwrap The rcu_data structure's ->gpwrap field is read locklessly, and so this commit adds the required READ_ONCE() to a pair of laods in order to avoid destructive compiler optimizations. This data race was reported by KCSAN. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>