]> 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)
commit085ff08cd8209ac48c4c7464b052e359281622b7
tree03a1788ff0601554fca2c0fce2476548c80c78bd
parenta9573eeecf227d82e84231ae9e7feabc732c9003
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