diff options
author | Paul E. McKenney <paulmck@kernel.org> | 2024-03-07 20:11:21 -0800 |
---|---|---|
committer | Uladzislau Rezki (Sony) <urezki@gmail.com> | 2024-04-15 16:28:46 +0200 |
commit | a542d116bab28b4bcade2f41488f4617373c620f (patch) | |
tree | f0556d1ed06a432bc609ccdb7697ae47a30facae /tools/perf/scripts/python/stackcollapse.py | |
parent | c90b9e49782424623e0006abbcab98f835c1f1d8 (diff) |
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/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions