]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: replace uuid_mutex by device_list_mutex in btrfs_open_devices
authorAnand Jain <anand.jain@oracle.com>
Thu, 12 Apr 2018 02:29:34 +0000 (10:29 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 28 May 2018 16:23:15 +0000 (18:23 +0200)
commitb66352d91f5eb20128509324a7f626df84e73683
tree3b94ce4b3adba78f045f537067e5355b7ac4ad4d
parentca208bb161ccedaddc8ae282ccca155ede48c3fd
btrfs: replace uuid_mutex by device_list_mutex in btrfs_open_devices

btrfs_open_devices() is using the uuid_mutex, but as btrfs_open_devices
is just limited to openning all the devices under for given fsid, so we
don't need uuid_mutex.

Instead it should hold the device_list_mutex as it updates the members
of the btrfs_fs_devices and btrfs_device and not the whole fs_devs list.

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>
fs/btrfs/volumes.c