diff options
author | Paul E. McKenney <paulmck@kernel.org> | 2019-12-23 06:39:35 +0300 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2020-02-21 03:01:11 +0300 |
commit | 39f91504a03a7a2abdb52205106942fa4a548d0d (patch) | |
tree | 21148b0b3bd1e4c676a50e9414e5a919fd85350c /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 8c9e0cb32315835825ea1ad725a858a2d2ce4a8e (diff) | |
download | linux-39f91504a03a7a2abdb52205106942fa4a548d0d.tar.xz |
srcu: Fix process_srcu()/srcu_batches_completed() datarace
The srcu_struct structure's ->srcu_idx field is accessed locklessly,
so reads must use READ_ONCE(). This commit therefore adds the needed
READ_ONCE() invocation where it was missed.
This data race was reported by KCSAN. Not appropriate for backporting
due to failure being unlikely.
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions