diff options
author | Josef Bacik <jbacik@fusionio.com> | 2013-01-30 16:03:59 -0500 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2013-02-20 12:59:27 -0500 |
commit | eb12db690c7eb0f6593ba5792f5861409e88bc03 (patch) | |
tree | 598ead6ef59b9e511ec5bfe94e8fdbe52db551bf /tools | |
parent | 063d006fa06fbf73fab370921120380333a33e85 (diff) | |
download | blackbird-op-linux-eb12db690c7eb0f6593ba5792f5861409e88bc03.tar.gz blackbird-op-linux-eb12db690c7eb0f6593ba5792f5861409e88bc03.zip |
Btrfs: fix freeing delayed ref head while still holding its mutex
I hit this error when reproducing a bug that would end in a transaction
abort. We take the delayed ref head's mutex to keep anybody from processing
it while we're destroying it, but we fail to drop the mutex before we carry
on and free the damned thing. Fix this by doing the remove logic for the
head ourselves and unlock the mutex, that way we can avoid use after free's
or hung tasks waiting on that mutex to come back so they know the delayed
ref completed. Thanks,
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions