From: Mike Accetta Date: Sat, 16 Jun 2007 17:16:07 +0000 (-0700) Subject: md: fix bug in error handling during raid1 repair X-Git-Tag: v2.6.22-rc5~10 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed45666271f4fafa95b9d8ad44050e9a9bd2376e;p=pandora-kernel.git md: fix bug in error handling during raid1 repair If raid1/repair (which reads all block and fixes any differences it finds) hits a read error, it doesn't reset the bio for writing before writing correct data back, so the read error isn't fixed, and the device probably gets a zero-length write which it might complain about. Signed-off-by: Neil Brown Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed