diff options
author | Paul E. McKenney <paulmck@kernel.org> | 2024-03-08 07:11:21 +0300 |
---|---|---|
committer | Uladzislau Rezki (Sony) <urezki@gmail.com> | 2024-04-15 17:28:46 +0300 |
commit | a542d116bab28b4bcade2f41488f4617373c620f (patch) | |
tree | f0556d1ed06a432bc609ccdb7697ae47a30facae /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | c90b9e49782424623e0006abbcab98f835c1f1d8 (diff) | |
download | linux-a542d116bab28b4bcade2f41488f4617373c620f.tar.xz |
rcu: Mark writes to rcu_sync ->gp_count field
The rcu_sync structure's ->gp_count field is updated under the protection
of ->rss_lock, but read locklessly, and KCSAN noted the data race.
This commit therefore uses WRITE_ONCE() to do this update to clearly
document its racy nature.
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions