]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: make btrfs_cleanup_fs_roots use the radix tree lock
authorJosef Bacik <josef@toxicpanda.com>
Fri, 14 Feb 2020 21:11:46 +0000 (16:11 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Mar 2020 16:01:59 +0000 (17:01 +0100)
commit58d17765eb73aa2ebf0b13904e314b79e874590f
treeafbfe97048a58a7d327e01ccf9c1ca292f6dad41
parentfe1312c20f2718e8ec7dd967b1c6fba8ddecc222
btrfs: make btrfs_cleanup_fs_roots use the radix tree lock

The radix root is primarily protected by the fs_roots_radix_lock, so use
that to lookup and get a ref on all of our fs roots in
btrfs_cleanup_fs_roots. The tree reference is taken in the protected
section as before.

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/disk-io.c