diff options
author | Paul E. McKenney <[email protected]> | 2020-01-03 15:59:12 -0800 |
---|---|---|
committer | Paul E. McKenney <[email protected]> | 2020-02-20 15:58:22 -0800 |
commit | 0050c7b2d27c3cc126df59bd8094fb3d25b00ade (patch) | |
tree | 6d398b15f88c3e6a876e5d406a8fe5f176bff03d /lib/mpi/mpi-cmp.c | |
parent | 105abf82b0a62664edabcd4c5b4d9414c74ef399 (diff) |
locking/rtmutex: rcu: Add WRITE_ONCE() to rt_mutex ->owner
The rt_mutex structure's ->owner field is read locklessly, so this
commit adds the WRITE_ONCE() to an update in order to provide proper
documentation and READ_ONCE()/WRITE_ONCE() pairing.
This data race was reported by KCSAN. Not appropriate for backporting
due to failure being unlikely.
Signed-off-by: Paul E. McKenney <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Will Deacon <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions