btrfs: restore uuid_mutex in btrfs_open_devices
authorDavid Sterba <dsterba@suse.com>
Wed, 20 Jun 2018 17:51:28 +0000 (19:51 +0200)
committerDavid Sterba <dsterba@suse.com>
Fri, 13 Jul 2018 12:55:46 +0000 (14:55 +0200)
commit20c5bbc640cdf8e23947990ab98f5ba950a3e1b0
tree18582dc8644adb26d941e2e74fb4cfc53bed0986
parente4e7ede739f7fb468686dfffa2d1e35dca35bacd
btrfs: restore uuid_mutex in btrfs_open_devices

Commit 542c5908abfe84f7b4c1 ("btrfs: replace uuid_mutex by
device_list_mutex in btrfs_open_devices") switched to device_list_mutex
as we need that for the device list traversal, but we also need
uuid_mutex to protect access to fs_devices::opened to be consistent with
other users of that.

Fixes: 542c5908abfe84f7b4c1 ("btrfs: replace uuid_mutex by device_list_mutex in btrfs_open_devices")
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c