diff options
author | 2019-02-12 16:13:14 +0200 | |
---|---|---|
committer | 2019-04-29 19:02:37 +0200 | |
commit | 68c94e55e1502868813a3cac2febc021d01edb75 (patch) | |
tree | 07b0803b3cb0c9c614a541d4d8e42378bc22f479 /fs/btrfs/extent_map.c | |
parent | btrfs: Stop using call_rcu for device freeing (diff) | |
download | wireguard-linux-68c94e55e1502868813a3cac2febc021d01edb75.tar.xz wireguard-linux-68c94e55e1502868813a3cac2febc021d01edb75.zip |
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>
Diffstat (limited to 'fs/btrfs/extent_map.c')
0 files changed, 0 insertions, 0 deletions