NeilBrown c0b32972fb md/raid5: avoid an extra write when writing to a known-bad-block.
If we write to a known-bad-block it will be flags as having
a ReadError by analyse_stripe, but the write will proceed anyway
(as it should).  Then the read-error handling will kick in an
write again, then re-read.

We don't need that 'write-again', so set R5_ReWrite so it looks like
it has already been done.  Then we will just get the re-read, which we
want.

Reported-by: majianpeng <majianpeng@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
2013-04-24 11:42:42 +10:00
..
2013-04-05 19:29:36 -07:00
2013-04-09 18:03:25 +01:00
2013-04-05 21:02:17 +08:00
2013-03-27 09:25:11 -07:00
2013-04-19 17:57:48 -04:00
2013-04-07 15:11:27 +03:00
2013-04-05 10:04:41 -07:00
2013-04-10 15:57:33 -07:00