diff options
author | 2012-05-31 15:49:57 -0400 | |
---|---|---|
committer | 2012-06-14 21:29:12 -0400 | |
commit | d7096fc3ef8360f30f228344bc564d4f97d8a158 (patch) | |
tree | c6a44d0b1cfc13d2449cf0d8ff8b7bae06bf0df1 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | Btrfs: fix locking in btrfs_destroy_delayed_refs (diff) | |
download | wireguard-linux-d7096fc3ef8360f30f228344bc564d4f97d8a158.tar.xz wireguard-linux-d7096fc3ef8360f30f228344bc564d4f97d8a158.zip |
Btrfs: wake up transaction waiters when aborting a transaction
I was getting lots of hung tasks and a NULL pointer dereference because we
are not cleaning up the transaction properly when it aborts. First we need
to reset the running_transaction to NULL so we don't get a bad dereference
for any start_transaction callers after this. Also we cannot rely on
waitqueue_active() since it's just a list_empty(), so just call wake_up()
directly since that will do the barrier for us and such. Thanks,
Signed-off-by: Josef Bacik <josef@redhat.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions