]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite5e0a26a7b1cb1c2c75271ee685219924b801006
treee35959bc4f6c370c982df8222eb818c720b94ffd
parent8181b7b94e286787e3ce75caa5a2eaed26798226
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