diff options
| author | Jason Low <[email protected]> | 2016-05-20 15:19:36 -0700 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2016-06-03 12:06:10 +0200 |
| commit | 6e2814745c67ab422b86262b05e6f23a56f28aa3 (patch) | |
| tree | 5e69ae55af787319cca75bf6b767adc0180eaafb /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | c0fcb6c2d332041256dc55d8a1ec3c0a2d0befb8 (diff) | |
locking/mutex: Set and clear owner using WRITE_ONCE()
The mutex owner can get read and written to locklessly.
Use WRITE_ONCE when setting and clearing the owner field
in order to avoid optimizations such as store tearing. This
avoids situations where the owner field gets written to with
multiple stores and another thread could concurrently read
and use a partially written owner value.
Signed-off-by: Jason Low <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Acked-by: Davidlohr Bueso <[email protected]>
Acked-by: Waiman Long <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Paul E. McKenney <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Scott J Norton <[email protected]>
Cc: Terry Rudd <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Link: http://lkml.kernel.org/r/1463782776.2479.9.camel@j-VirtualBox
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions