aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorAlexander Shishkin <[email protected]>2016-02-15 19:12:08 +0200
committerGreg Kroah-Hartman <[email protected]>2016-02-20 14:09:14 -0800
commitb4ca34aaf78ed0cdfc15956d377064104257a437 (patch)
tree69100826c2b2d596afa8e4792a430bec32761ad1 /tools/perf/util/trace-event-scripting.c
parentf7c81c7176c72c7899390754b4b038a64b296e4d (diff)
stm class: Fix a race in unlinking
There is a window in stm_source_link_drop(), during which the source's link may change before locks are acquired. When this happens, it throws a warning, since this is not an expected scenario. This patch handles the race in such a way that if the link appears to have changed by the time we took the locks, it will release them and repeat the whole unlinking procedure from the beginning, unless the other contender beat us to it. Signed-off-by: Alexander Shishkin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions