summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2011-11-03 15:21:39 -0400
committerChris Mason <chris.mason@oracle.com>2011-11-06 03:09:41 -0500
commit306c8b68c82dfe6b7c9e5b61985760ad5d089205 (patch)
treebf720bdfe5de076d4006bee3c1dfc84d5efcb003 /fs
parentc674e04e1cd6049715e7b9446790f4b441e547c0 (diff)
downloadlinux-3.10-306c8b68c82dfe6b7c9e5b61985760ad5d089205.tar.gz
linux-3.10-306c8b68c82dfe6b7c9e5b61985760ad5d089205.tar.bz2
linux-3.10-306c8b68c82dfe6b7c9e5b61985760ad5d089205.zip
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>
Diffstat (limited to 'fs')
-rw-r--r--fs/btrfs/disk-io.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 40a62b98008..e532892431f 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -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);