From: NeilBrown Date: Wed, 24 Apr 2013 01:42:42 +0000 (+1000) Subject: md/raid5: avoid an extra write when writing to a known-bad-block. X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~89^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0b32972fb1e1110101702f096c0877afcab9f1d;p=pandora-kernel.git 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 Signed-off-by: NeilBrown --- Reading git-diff-tree failed