OSDN Git Service

Btrfs: properly clean up btrfs_end_io_wq_cache
authorJosef Bacik <jbacik@fb.com>
Wed, 15 Oct 2014 21:19:59 +0000 (17:19 -0400)
committerChris Mason <clm@fb.com>
Mon, 27 Oct 2014 20:16:53 +0000 (13:16 -0700)
In one of Dave's cleanup commits he forgot to call btrfs_end_io_wq_exit on
unload, which makes us unable to unload and then re-load the btrfs module.  This
fixes the problem.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
Reviewed-by: David Sterba <dsterba@suse.cz>
Reviewed-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/super.c

index a2b97ef..54bd91e 100644 (file)
@@ -2151,6 +2151,7 @@ static void __exit exit_btrfs_fs(void)
        extent_map_exit();
        extent_io_exit();
        btrfs_interface_exit();
+       btrfs_end_io_wq_exit();
        unregister_filesystem(&btrfs_fs_type);
        btrfs_exit_sysfs();
        btrfs_cleanup_fs_uuids();