aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorLiu Bo <[email protected]>2013-02-27 13:28:25 +0000
committerJosef Bacik <[email protected]>2013-02-28 13:33:52 -0500
commitf094ac32aba3a51c00e970a2ea029339af2ca048 (patch)
tree88330927384b9ff597f6330a000e463079c02846 /tools/perf/util/trace-event-scripting.c
parent3321719ed67440bba1b0c5ae19c30d640263ccc8 (diff)
Btrfs: fix NULL pointer after aborting a transaction
While doing cleanup work on an aborted transaction, we've set the global running transaction pointer to NULL _before_ waiting all other transaction handles to finish, so others'd hit NULL pointer crash when referencing the global running transaction pointer. This first sets a hint to avoid new transaction handle joining, then waits other existing handles to abort or finish so that we can safely set the above global pointer to NULL. Signed-off-by: Liu Bo <[email protected]> Signed-off-by: Josef Bacik <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions