btrfs: kill the RCU protection for fs_info->space_info
authorJosef Bacik <josef@toxicpanda.com>
Tue, 1 Sep 2020 21:40:37 +0000 (17:40 -0400)
committerDavid Sterba <dsterba@suse.com>
Wed, 7 Oct 2020 10:13:19 +0000 (12:13 +0200)
commit72804905001267a93e7a470430c2bcc122932ca6
treeb06e8a21b3ea0c237b660278759d0cee80d1ad89
parent7269ddd2f60286af1f5d1d47d283d2f9a26818c6
btrfs: kill the RCU protection for fs_info->space_info

We have this thing wrapped in an RCU lock, but it's really not needed.
We create all the space_info's on mount, and we destroy them on unmount.
The list never changes and we're protected from messing with it by the
normal mount/umount path, so kill the RCU stuff around it.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/block-group.c
fs/btrfs/ioctl.c
fs/btrfs/space-info.c
fs/btrfs/super.c