]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid5: use bad-block log to improve handling of uncorrectable read errors.
authorNeilBrown <neilb@suse.de>
Thu, 28 Jul 2011 01:39:22 +0000 (11:39 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 28 Jul 2011 01:39:22 +0000 (11:39 +1000)
commit1e67e171fdc14442ec7db71f7285e588bbf5a361
tree4ab3ae7188122657c12dfab61626d96360fb6240
parentd8a5769d7179c5ee4e4ad48696f015c28e1f6bec
md/raid5: use bad-block log to improve handling of uncorrectable read errors.

If we get an uncorrectable read error - record a bad block rather than
failing the device.
And if these errors (which may be due to known bad blocks) cause
recovery to be impossible, record a bad block on the recovering
devices, or abort the recovery.

As we might abort a recovery without failing a device we need to teach
RAID5 about recovery_disabled handling.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid5.c
drivers/md/raid5.h