commit | e875ecea266a543e643b19e44cf472f1412708f9 | [log] [tgz] |
---|---|---|
author | NeilBrown <neilb@suse.de> | Thu Jul 28 11:39:24 2011 +1000 |
committer | NeilBrown <neilb@suse.de> | Thu Jul 28 11:39:24 2011 +1000 |
tree | b602d08f7aa4a743d3c27ad55e347d36991f0814 | |
parent | 40c356ce5ad1a6be817825e1da1bc7494349cc6d [diff] |
md/raid10 record bad blocks as needed during recovery. When recovering one or more devices, if all the good devices have bad blocks we should record a bad block on the device being rebuilt. If this fails, we need to abort the recovery. To ensure we don't think that we aborted later than we actually did, we need to move the check for MD_RECOVERY_INTR earlier in md_do_sync, in particular before mddev->curr_resync is updated. Signed-off-by: NeilBrown <neilb@suse.de>