Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2444,6 +2444,7 @@ fail_tree_roots:

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);