• NeilBrown's avatar
    md/raid10 record bad blocks as needed during recovery. · e875ecea
    NeilBrown authored
    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>
    e875ecea
md.c 211 KB