]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
md: fix bug in error handling during raid1 repair
authorMike Accetta <maccetta@laurelnetworks.com>
Sat, 16 Jun 2007 17:16:07 +0000 (10:16 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sat, 16 Jun 2007 20:16:15 +0000 (13:16 -0700)
commited45666271f4fafa95b9d8ad44050e9a9bd2376e
tree6f626a05e7d78029252768c2ac5f9b1d5309319b
parentaf03b8e4e81c3789e597632268940edd11ffe870
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>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/md/raid1.c