commit | f042a436c8dc9f9cfe8ed1ee5de372697269657d | [log] [tgz] |
---|---|---|
author | Paul E. McKenney <paulmck@kernel.org> | Fri Jan 03 16:27:00 2020 -0800 |
committer | Paul E. McKenney <paulmck@kernel.org> | Thu Feb 20 16:03:31 2020 -0800 |
tree | f026309a51c6ff18e4e5f53a027f7977344dfca5 | |
parent | 102c14d2f87976e8390d2cb892ccd14e3532e020 [diff] |
rcutorture: Add READ_ONCE() to rcu_torture_count and rcu_torture_batch The rcutorture rcu_torture_count and rcu_torture_batch per-CPU variables are read locklessly, so this commit adds the READ_ONCE() to a load in order to avoid various types of compiler vandalism^Woptimization. This data race was reported by KCSAN. Not appropriate for backporting due to failure being unlikely and due to this being rcutorture. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>