From: NeilBrown Date: Sun, 1 Apr 2012 13:48:38 +0000 (+1000) Subject: md/raid5: fix handling of bad blocks during recovery. X-Git-Tag: v3.4-rc2~27^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18b9837ea0dc3cf844c6c4196871ce91d047bddb;p=pandora-kernel.git md/raid5: fix handling of bad blocks during recovery. 1/ We can only treat a known-bad-block like a read-error if we have the data that belongs in that block. So fix that test. 2/ If we cannot recovery a stripe due to insufficient data, don't tell "md_done_sync" that the sync failed unless we really did fail something. If we successfully record bad blocks, that is success. Reported-by: "majianpeng" Signed-off-by: NeilBrown --- Reading git-diff-tree failed