]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: lift uuid_mutex to callers of btrfs_scan_one_device
authorDavid Sterba <dsterba@suse.com>
Tue, 19 Jun 2018 14:37:36 +0000 (16:37 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 6 Aug 2018 11:12:47 +0000 (13:12 +0200)
commiteba7eda76f5b9d9f52f7f603fad851d5bf654820
treea4a20c74583fb1d5f4527977faa947670562f6de
parentafb0f0e0d597e57c0e7f5dc4e3925c14ca13b3bc
btrfs: lift uuid_mutex to callers of btrfs_scan_one_device

Prepartory work to fix race between mount and device scan.

The callers will have to manage the critical section, eg. mount wants to
scan and then call btrfs_open_devices without the ioctl scan walking in
and modifying the fs devices in the meantime.

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