From: NeilBrown Date: Thu, 28 Jul 2011 01:33:42 +0000 (+1000) Subject: md/raid1: improve handling of read failure during recovery. X-Git-Tag: v3.1-rc1~131^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a9f28a5117e00a868dd8b4395f9a707ae56764b;p=pandora-kernel.git md/raid1: improve handling of read failure during recovery. If we cannot read a block from anywhere during recovery, there is now a better approach than just giving up. We can record a bad block on each device and keep going - being careful not to clear the bad block when a write succeeds as it might - it will be a write of incorrect data. We have now reached the state where - for raid1 - we only call md_error if md_set_badblocks has failed. Signed-off-by: NeilBrown Reviewed-by: Namhyung Kim --- Reading git-diff-tree failed