Skip to content
Commit e875ecea authored by NeilBrown's avatar NeilBrown
Browse files

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: default avatarNeilBrown <neilb@suse.de>
parent 40c356ce
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment