btrfs: call mnt_drop_write after interrupted subvol deletion
authorDavid Sterba <dsterba@suse.cz>
Fri, 6 Dec 2013 16:51:32 +0000 (17:51 +0100)
committerChris Mason <clm@fb.com>
Thu, 12 Dec 2013 15:11:38 +0000 (07:11 -0800)
commite43f998e47bae27e37e159915625e8d4b130153b
tree03a1788ff0601554fca2c0fce2476548c80c78bd
parenta7e252af5a819eb71c9494e62b2bfca982e92f84
btrfs: call mnt_drop_write after interrupted subvol deletion

If btrfs_ioctl_snap_destroy blocks on the mutex and the process is
killed, mnt_write count is unbalanced and leads to unmountable
filesystem.

CC: stable@vger.kernel.org
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/ioctl.c