Nikolay Borisov 68c94e55e1 btrfs: Transpose btrfs_close_devices/btrfs_mapping_tree_free in close_ctree
Following the introduction of the alloc_state tree, some of the callees
of btrfs_mapping_tree_free will have to interact with the btrfs_device
of the constituent devices. Enable this by moving the code responsible
for freeing devices after the last user (btrfs_mapping_tree_free).
Otherwise the kernel could crash due to use-after-free.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2019-04-29 19:02:37 +02:00
..
2019-04-29 19:02:32 +02:00
2018-08-06 13:12:43 +02:00
2018-04-12 16:29:55 +02:00
2018-03-26 15:09:39 +02:00
2019-03-26 10:32:13 -07:00
2019-04-29 19:02:35 +02:00
2018-08-06 13:12:43 +02:00