mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
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: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
parent
c674e04e1c
commit
306c8b68c8
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue