]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: move volume_mutex to callers of btrfs_rm_device
authorDavid Sterba <dsterba@suse.com>
Tue, 20 Mar 2018 16:20:45 +0000 (17:20 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 28 May 2018 16:07:24 +0000 (18:07 +0200)
commit6d47227274c7925eeeb199a665cafb7ea52e8b89
tree2d71c6d74fd7f3e21672b06a471092641db9844d
parent3620f0d324c5e5e412c6a10e237210c680468d9f
btrfs: move volume_mutex to callers of btrfs_rm_device

Move locking and unlocking next to the BTRFS_FS_EXCL_OP bit manipulation
so it's obvious that the two happen at the same time.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ioctl.c
fs/btrfs/volumes.c