Re: [PATCH v3] btrfs: drop uuid_mutex in btrfs_free_extra_devids()

2018-05-25 Thread David Sterba
On Wed, May 23, 2018 at 10:54:22AM +0800, Anand Jain wrote: > btrfs_free_extra_devids() is called only in the mount context which > traverses through the fs_devices::devices and frees the orphan devices > devices in the given %fs_devices if any. As the search for the orphan > device is limited to

[PATCH v3] btrfs: drop uuid_mutex in btrfs_free_extra_devids()

2018-05-22 Thread Anand Jain
btrfs_free_extra_devids() is called only in the mount context which traverses through the fs_devices::devices and frees the orphan devices devices in the given %fs_devices if any. As the search for the orphan device is limited to fs_devices::devices so we don't need the global uuid_mutex. There