]> 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)
commit552dfecdc2ade55bbad1a1a0488dd214d2263466
tree18582dc8644adb26d941e2e74fb4cfc53bed0986
parentcccd8c5c5458eba80e72e19196723ecf1b7b69fd
btrfs: restore uuid_mutex in btrfs_open_devices

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