]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid10: Handle write errors by updating badblock log.
authorNeilBrown <neilb@suse.de>
Thu, 28 Jul 2011 01:39:24 +0000 (11:39 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 28 Jul 2011 01:39:24 +0000 (11:39 +1000)
commitc64d3e52a9a1ce2a502ae1fc44dd9901110d2095
tree3492f61a441266c796b8a08ec30c06f7f6f27fbc
parentf85387425ef65e1dcd115b3577d8437aba1228e7
md/raid10:  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>
drivers/md/raid10.c
drivers/md/raid10.h