diff options
author | Anand Jain <anand.jain@oracle.com> | 2018-04-12 10:29:37 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-05-28 18:23:17 +0200 |
commit | ab5c2f65debc23d6f76cbb7e743ff4d10e66dce0 (patch) | |
tree | 4ed95c20dab0f4c8cd2e42978798749bdd725c0a /fs/btrfs/volumes.c | |
parent | b25e59e2b2ee394a2a7e981b99cbd92ef6c8be85 (diff) | |
download | linux-ab5c2f65debc23d6f76cbb7e743ff4d10e66dce0.tar.gz linux-ab5c2f65debc23d6f76cbb7e743ff4d10e66dce0.tar.bz2 linux-ab5c2f65debc23d6f76cbb7e743ff4d10e66dce0.zip |
btrfs: drop uuid_mutex in btrfs_destroy_dev_replace_tgtdev
Delete the uuid_mutex lock here as this thread accesses the
btrfs_fs_devices::devices only (counters or called functions do a list
traversal). And the device_list_mutex lock is already taken.
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ update changelog ]
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r-- | fs/btrfs/volumes.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 271d9be6e1da..28715e4c3097 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -2152,7 +2152,6 @@ void btrfs_rm_dev_replace_free_srcdev(struct btrfs_fs_info *fs_info, void btrfs_destroy_dev_replace_tgtdev(struct btrfs_fs_info *fs_info, struct btrfs_device *tgtdev) { - mutex_lock(&uuid_mutex); WARN_ON(!tgtdev); mutex_lock(&fs_info->fs_devices->device_list_mutex); @@ -2168,7 +2167,6 @@ void btrfs_destroy_dev_replace_tgtdev(struct btrfs_fs_info *fs_info, list_del_rcu(&tgtdev->dev_list); mutex_unlock(&fs_info->fs_devices->device_list_mutex); - mutex_unlock(&uuid_mutex); /* * The update_dev_time() with in btrfs_scratch_superblocks() |