]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] md: raid10 read-error handling - resync and read-only
authorNeilBrown <neilb@suse.de>
Fri, 6 Jan 2006 08:20:29 +0000 (00:20 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 6 Jan 2006 16:34:05 +0000 (08:34 -0800)
commit0eb3ff12aa8a12538ef681dc83f4361636a0699f
treee5d4b8353362cefd096a4b1ee1a8f473c01169b6
parent4443ae10ca15d07922ceda622f03db8865fa3d13
[PATCH] md: raid10 read-error handling - resync and read-only

Add in correct read-error handling for resync and read-only situations.

When read-only, we don't over-write, so we need to mark the failed drive in
the r10_bio so we don't re-try it.  During resync, we always read all blocks,
so if there is a read error, we simply over-write it with the good block that
we found (assuming we found one).

Note that the recovery case still isn't handled in an interesting way.  There
is nothing useful to do for the 2-copies case.  If there are 3 or more copies,
then we could try reading from one of the non-missing copies, but this is a
bit complicated and very rarely would be used, so I'm leaving it for now.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/raid10.c
include/linux/raid/raid10.h