diff options
author | Stefan Behrens <sbehrens@giantdisaster.de> | 2012-11-14 19:57:29 +0100 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2012-12-17 02:46:28 +0100 |
commit | 4ded4f639533ed5f02a0f0ab20d43bb9659c91f8 (patch) | |
tree | e3b4f6247ce96801b8085b5ba787901eac5a2973 /fs/btrfs/volumes.h | |
parent | Btrfs: do not call file_update_time in aio_write (diff) | |
download | linux-4ded4f639533ed5f02a0f0ab20d43bb9659c91f8.tar.xz linux-4ded4f639533ed5f02a0f0ab20d43bb9659c91f8.zip |
Btrfs: fix BUG() in scrub when first superblock reading gives EIO
This fixes a very special case that can be reproduced by just
disconnecting a disk at runtime, and without unmounting the
filesystem first, start scrub on the filesystem with the
disconnected disk. All read and write EIOs are handled
correctly, only the first superblock is an exception and gives
a BUG() in a subfunction. The BUG() is correct, it would crash
later otherwise. The subfunction must not be called for
superblocks and this is what the fix changes.
Reported-by: Joeri Vanthienen <mail@joerivanthienen.be>
Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/btrfs/volumes.h')
0 files changed, 0 insertions, 0 deletions