btrfs: lift uuid_mutex to callers of btrfs_parse_early_options
authorDavid Sterba <dsterba@suse.com>
Tue, 19 Jun 2018 15:50:25 +0000 (17:50 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 6 Aug 2018 11:12:47 +0000 (13:12 +0200)
commit5139cff598d42b1e531f40c84691a7e945f04553
tree974a8bdbdb8270a79f358173866eb7a0c1c9a5f1
parentf5194e34cabaddd348a90f950e0a8188dd26cdc0
btrfs: lift uuid_mutex to callers of btrfs_parse_early_options

Prepartory work to fix race between mount and device scan.

btrfs_parse_early_options calls the device scan from mount and we'll
need to let mount completely manage the critical section.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/super.c