diff options
author | Chris Mason <chris.mason@oracle.com> | 2011-11-03 15:21:39 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2011-11-06 03:09:41 -0500 |
commit | 306c8b68c82dfe6b7c9e5b61985760ad5d089205 (patch) | |
tree | bf720bdfe5de076d4006bee3c1dfc84d5efcb003 /fs/btrfs | |
parent | c674e04e1cd6049715e7b9446790f4b441e547c0 (diff) |
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/btrfs')
-rw-r--r-- | fs/btrfs/disk-io.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 40a62b980087..e532892431f4 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -2444,6 +2444,7 @@ fail_tree_roots: | |||
2444 | 2444 | ||
2445 | fail_sb_buffer: | 2445 | fail_sb_buffer: |
2446 | btrfs_stop_workers(&fs_info->generic_worker); | 2446 | btrfs_stop_workers(&fs_info->generic_worker); |
2447 | btrfs_stop_workers(&fs_info->readahead_workers); | ||
2447 | btrfs_stop_workers(&fs_info->fixup_workers); | 2448 | btrfs_stop_workers(&fs_info->fixup_workers); |
2448 | btrfs_stop_workers(&fs_info->delalloc_workers); | 2449 | btrfs_stop_workers(&fs_info->delalloc_workers); |
2449 | btrfs_stop_workers(&fs_info->workers); | 2450 | btrfs_stop_workers(&fs_info->workers); |