• NeilBrown's avatar
    md/raid10: Make use of new recovery_disabled handling · 2bb77736
    NeilBrown authored
    When we get a read error during recovery, RAID10 previously
    arranged for the recovering device to appear to fail so that
    the recovery stops and doesn't restart.  This is misleading and wrong.
    
    Instead, make use of the new recovery_disabled handling and mark
    the target device and having recovery disabled.
    
    Add appropriate checks in add_disk and remove_disk so that devices
    are removed and not re-added when recovery is disabled.
    Signed-off-by: default avatarNeilBrown <neilb@suse.de>
    2bb77736
raid10.c 65.7 KB