Commit 306c8b68 authored by Chris Mason's avatar Chris Mason

Btrfs: stop the readahead threads on failed mount

If we don't stop them, they linger around corrupting
memory by using pointers to freed things.
Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent c674e04e
......@@ -2444,6 +2444,7 @@ struct btrfs_root *open_ctree(struct super_block *sb,
fail_sb_buffer:
btrfs_stop_workers(&fs_info->generic_worker);
btrfs_stop_workers(&fs_info->readahead_workers);
btrfs_stop_workers(&fs_info->fixup_workers);
btrfs_stop_workers(&fs_info->delalloc_workers);
btrfs_stop_workers(&fs_info->workers);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment