]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 4 Aug 2007 16:10:23 +0000 (09:10 -0700)
commit56d39b59e95b269654940a0d26904229781380e6
tree089fd5fbed105471e2e2c5a4615e78e66eedfca6
parent9711bd8cc17e4f0791536d72c7f330af91672b86
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