forked from Minki/linux
Btrfs: fix missing write access release in btrfs_ioctl_resize()
We forget to give up the write access after we find some device operation is going on. Fix it. Signed-off-by: Miao Xie <miaox@cn.fujitsu.com> Signed-off-by: Josef Bacik <jbacik@fusionio.com>
This commit is contained in:
parent
dba60f3f5d
commit
9754767657
@ -1339,6 +1339,7 @@ static noinline int btrfs_ioctl_resize(struct file *file,
|
||||
if (atomic_xchg(&root->fs_info->mutually_exclusive_operation_running,
|
||||
1)) {
|
||||
pr_info("btrfs: dev add/delete/balance/replace/resize operation in progress\n");
|
||||
mnt_drop_write_file(file);
|
||||
return -EINPROGRESS;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user