md/raid1: record badblocks found during resync etc.
authorNeilBrown <neilb@suse.de>
Thu, 28 Jul 2011 01:33:00 +0000 (11:33 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 28 Jul 2011 01:33:00 +0000 (11:33 +1000)
commitd8f05d2995d467a91db1af01637e6ffd94660ca8
treee35959bc4f6c370c982df8222eb818c720b94ffd
parentcd5ff9a16f0831f68c1024d5d776075b5123b034
md/raid1: record badblocks found during resync etc.

If we find a bad block while writing as part of resync/recovery we
need to report that back to raid1d which must record the bad block,
or fail the device.

Similarly when fixing a read error, a further error should just
record a bad block if possible rather than failing the device.

Signed-off-by: NeilBrown <neilb@suse.de>
Reviewed-by: Namhyung Kim <namhyung@gmail.com>
drivers/md/raid1.c