]> git.itanic.dy.fi Git - linux-stable/commit
[PATCH] md: Fix bug in error handling during raid1 repair.
authorMike Accetta <maccetta@laurelnetworks.com>
Tue, 12 Jun 2007 01:09:35 +0000 (11:09 +1000)
committerWilly Tarreau <w@1wt.eu>
Wed, 15 Aug 2007 08:02:28 +0000 (10:02 +0200)
commitc6de5adc0aae0e5953968aedcfb24be302d786d2
tree993aa408b47dbef9875e157d4baa818177e900cc
parente8fa943e054165b5e24fa4a6ae3273b6147c47dc
[PATCH] 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 <neilb@suse.de>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/md/raid1.c