From: Chris Mason Date: Thu, 3 Nov 2011 19:21:39 +0000 (-0400) Subject: Btrfs: stop the readahead threads on failed mount X-Git-Tag: v2.6.39-400.9.0~845^2~113 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=6302e43cf7d5de61eca7b9712a46bbe3a108c4e0;p=users%2Fjedix%2Flinux-maple.git 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 (cherry picked from commit 306c8b68c82dfe6b7c9e5b61985760ad5d089205) --- diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 6d97b3e8b5526..4c63b166b5d30 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -2219,6 +2219,7 @@ fail_chunk_root: free_extent_buffer(chunk_root->commit_root); 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);