Skip to content

Commit

Permalink
Btrfs: stop the readahead threads on failed mount
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chris Mason committed Nov 6, 2011
1 parent c674e04 commit 306c8b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/btrfs/disk-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -2444,6 +2444,7 @@ struct btrfs_root *open_ctree(struct super_block *sb,

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

0 comments on commit 306c8b6

Please sign in to comment.