]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: reorder initialization before the mount locks uuid_mutex
authorDavid Sterba <dsterba@suse.com>
Tue, 19 Jun 2018 16:01:24 +0000 (18:01 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 6 Aug 2018 11:12:48 +0000 (13:12 +0200)
commitb92e05ea0446b7e5431bf765dce23cd7f207c130
tree6f0a570e594a7a0bac0158483cc8873d654de96c
parentf9aab3e49cbfddf7ba4fc4a3dc58873ae3a1c66a
btrfs: reorder initialization before the mount locks uuid_mutex

In preparation to take a big lock, move resource initialization before
the critical section. It's not obvious from the diff, the desired order
is:

- initialize mount security options
- allocate temporary fs_info
- allocate superblock buffers

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