NeilBrown 698b18c1e8 md: raid1: Fix restoration of bio between failed read and write.
When performing a "recovery" or "check" pass on a RAID1 array, we read
from each device and possible, if there is a difference or a read error,
write back to some devices.

We use the same 'bio' for both read and write, resetting various fields
between the two operations.

We forgot to reset bv_offset and bv_len however.  These are often left
unchanged, but in the case where there is an IO error one or two sectors
into a page, they are changed.

This results in correctable errors not being corrected properly.  It does
not result in any data corruption.

Cc: "Fairbanks, David" <David.Fairbanks@stratus.com>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-05-24 09:56:10 -07:00
..
2008-05-19 17:56:10 -04:00
2008-05-20 14:52:25 -07:00
2008-03-13 22:53:29 +01:00
2008-05-05 15:08:38 -07:00
2008-05-20 16:44:43 +02:00
2008-05-20 13:31:54 -07:00
2008-05-20 13:31:55 -07:00
2008-04-29 08:06:18 -07:00
2008-05-21 16:55:59 -07:00
2008-05-21 16:56:00 -07:00
2008-05-21 16:55:59 -07:00
2008-05-20 13:31:56 -07:00
2008-04-23 21:25:35 -04:00
2008-05-20 13:31:55 -07:00
2008-04-24 23:57:33 +02:00
2008-04-30 08:29:52 -07:00
2008-04-30 08:29:52 -07:00