diff options
| author | Paul E. McKenney <[email protected]> | 2020-01-04 00:27:00 +0000 |
|---|---|---|
| committer | Paul E. McKenney <[email protected]> | 2020-02-21 00:03:31 +0000 |
| commit | f042a436c8dc9f9cfe8ed1ee5de372697269657d (patch) | |
| tree | f026309a51c6ff18e4e5f53a027f7977344dfca5 /Documentation/filesystems/caching/netfs-api.rst | |
| parent | rcutorture: Fix stray access to rcu_fwd_cb_nodelay (diff) | |
| download | kernel-f042a436c8dc9f9cfe8ed1ee5de372697269657d.tar.gz kernel-f042a436c8dc9f9cfe8ed1ee5de372697269657d.zip | |
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 <[email protected]>
Diffstat (limited to 'Documentation/filesystems/caching/netfs-api.rst')
0 files changed, 0 insertions, 0 deletions
