btrfs: drop uuid_mutex in btrfs_dev_replace_finishing
authorAnand Jain <anand.jain@oracle.com>
Thu, 12 Apr 2018 02:29:36 +0000 (10:29 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 28 May 2018 16:23:16 +0000 (18:23 +0200)
commitb25e59e2b2ee394a2a7e981b99cbd92ef6c8be85
tree707e1439dc50eb846d807d2e6b088d50fe7130b9
parent542c5908abfe84f7b4c1717492ecc92ea0ea328d
btrfs: drop uuid_mutex in btrfs_dev_replace_finishing

btrfs_dev_replace_finishing updates devices (soruce and target) which
are within the btrfs_fs_devices::devices or withint the cloned seed
devices (btrfs_fs_devices::seed::devices), so we don't need the global
uuid_mutex.

The device replace context is also locked by its own locks.

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