Skip to content
Commit eb12db69 authored by Josef Bacik's avatar Josef Bacik
Browse files

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: default avatarJosef Bacik <jbacik@fusionio.com>
parent 063d006f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment