Btrfs: fix lock leak when resuming snapshot deletion
authorJosef Bacik <jbacik@fusionio.com>
Mon, 15 Jul 2013 16:41:42 +0000 (12:41 -0400)
committerJosef Bacik <jbacik@fusionio.com>
Fri, 19 Jul 2013 19:07:11 +0000 (15:07 -0400)
commitfec386ac1428f9c0e672df952cbca5cebd4e4e2f
tree3dbfcb86647729564322d967bc7f00b523123e8d
parent3c8f24225752fba30f7265202ce6092318ed9fac
Btrfs: fix lock leak when resuming snapshot deletion

We aren't setting path->locks[level] when we resume a snapshot deletion which
means we won't unlock the buffer when we free the path.  This causes deadlocks
if we happen to re-allocate the block before we've evicted the extent buffer
from cache.  Thanks,

Cc: stable@vger.kernel.org
Reported-by: Alex Lyakas <alex.btrfs@zadarastorage.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/extent-tree.c