diff options
author | Paul E. McKenney <[email protected]> | 2024-03-07 20:11:21 -0800 |
---|---|---|
committer | Uladzislau Rezki (Sony) <[email protected]> | 2024-04-15 16:28:46 +0200 |
commit | a542d116bab28b4bcade2f41488f4617373c620f (patch) | |
tree | f0556d1ed06a432bc609ccdb7697ae47a30facae /scripts/gdb/linux/modules.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 <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Signed-off-by: Uladzislau Rezki (Sony) <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions