diff options
author | Anand Jain <anand.jain@oracle.com> | 2018-04-12 10:29:33 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-04-16 21:36:32 +0200 |
commit | 3da40f7d43f2ea2318df3dfa7ee2563fcf3a553d (patch) | |
tree | 83730a1d1c0d63bd123533fcb290811b1ab7d0af /fs/btrfs/volumes.c | |
parent | 0509a9261842fb9e5bc3560b4893f91e6b45504f (diff) | |
download | linux-next-3da40f7d43f2ea2318df3dfa7ee2563fcf3a553d.tar.gz |
btrfs: drop uuid_mutex in btrfs_free_extra_devids()
btrfs_free_extra_devids() frees the orphan fsid::devid but its search is
limited to btrfs_fs_devices::devices, so we dont need uuid_mutex.
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r-- | fs/btrfs/volumes.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 3b80547e6ddd..c5d51c4f084b 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -892,7 +892,6 @@ void btrfs_free_extra_devids(struct btrfs_fs_devices *fs_devices, int step) struct btrfs_device *device, *next; struct btrfs_device *latest_dev = NULL; - mutex_lock(&uuid_mutex); again: /* This is the initialized path, it is safe to release the devices. */ list_for_each_entry_safe(device, next, &fs_devices->devices, dev_list) { @@ -946,8 +945,6 @@ again: } fs_devices->latest_bdev = latest_dev->bdev; - - mutex_unlock(&uuid_mutex); } static void free_device_rcu(struct rcu_head *head) |