aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorKent Overstreet <[email protected]>2023-10-24 14:46:58 -0400
committerKent Overstreet <[email protected]>2023-10-30 21:48:22 -0400
commitee526b88caaa4b4182144bf2576af2c3b1e9c759 (patch)
treed25c1a6b69d86c8a7ed518334dbcc13a842b37e4 /tools/perf/scripts/python/bin
parent2bce6368c46b835a133f7f4946eea9c4513828dd (diff)
closures: Fix race in closure_sync()
As pointed out by Linus, closure_sync() was racy; we could skip blocking immediately after a get() and a put(), but then that would skip any barrier corresponding to the other thread's put() barrier. To fix this, always do the full __closure_sync() sequence whenever any get() has happened and the closure might have been used by other threads. Signed-off-by: Kent Overstreet <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions