diff options
author | Waiman Long <[email protected]> | 2014-01-21 15:35:53 -0800 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2014-01-28 13:13:26 +0100 |
commit | aff7385b5a16bca6b8d9243f01a9ea5a5b411e1d (patch) | |
tree | ca8b03e4e6aa1d0fcd8ae971e98b0719fdb08666 /tools/perf/util/scripting-engines | |
parent | 270750dbc18a71b23d660df110e433ff9616a2d4 (diff) |
locking/mutexes/mcs: Correct barrier usage
This patch corrects the way memory barriers are used in the MCS lock
with smp_load_acquire and smp_store_release fucnctions. The previous
barriers could leak critical sections if mcs lock is used by itself.
It is not a problem when mcs lock is embedded in mutex but will be an
issue when the mcs_lock is used elsewhere.
The patch removes the incorrect barriers and put in correct
barriers with the pair of functions smp_load_acquire and smp_store_release.
Suggested-by: Michel Lespinasse <[email protected]>
Reviewed-by: Paul E. McKenney <[email protected]>
Signed-off-by: Waiman Long <[email protected]>
Signed-off-by: Jason Low <[email protected]>
Signed-off-by: Tim Chen <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Link: http://lkml.kernel.org/r/1390347353.3138.62.camel@schen9-DESK
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines')
0 files changed, 0 insertions, 0 deletions