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) | |
download | op-kernel-dev-306c8b68c82dfe6b7c9e5b61985760ad5d089205.zip op-kernel-dev-306c8b68c82dfe6b7c9e5b61985760ad5d089205.tar.gz |
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 40a62b9..e532892 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); |