]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcef95be1cf45782d40a4dd4340cdac625757a7a4
tree03a1788ff0601554fca2c0fce2476548c80c78bd
parent9bc5ee3cecfafc3bb2baf43a7328b33207cd7379
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