]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit39e58b4f6b6112738c4dd876ef07e8ea9f75dc31
tree18582dc8644adb26d941e2e74fb4cfc53bed0986
parent5c3c559139df068f521988795c9c575c4cc3458e
btrfs: restore uuid_mutex in btrfs_open_devices

Commit bb0be0edc333248f8f6f ("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: bb0be0edc333248f8f6f ("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