]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid1: Handle write errors by updating badblock log.
authorNeilBrown <neilb@suse.de>
Thu, 28 Jul 2011 01:32:41 +0000 (11:32 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 28 Jul 2011 01:32:41 +0000 (11:32 +1000)
commit8181b7b94e286787e3ce75caa5a2eaed26798226
tree490e297bde3d0c52b55d38b38ed1cdb5b5b6f43e
parent1d5cd6a8cdded8903c3a15025c3bc12080a02dbd
md/raid1:  Handle write errors by updating badblock log.

When we get a write error (in the data area, not in metadata),
update the badblock log rather than failing the whole device.

As the write may well be many blocks, we trying writing each
block individually and only log the ones which fail.

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