• NeilBrown's avatar
    md: make sure MD_RECOVERY_DONE is clear before starting recovery/resync · ea358cd0
    NeilBrown authored
    MD_RECOVERY_DONE is normally cleared by md_check_recovery after a
    resync etc finished.  However it is possible for raid5_start_reshape
    to race and start a reshape before MD_RECOVERY_DONE is cleared.  This
    can lean to multiple reshapes running at the same time, which isn't
    good.
    
    To make sure it is cleared before starting a reshape, and also clear
    it when reaping a thread, just to be safe.
    Signed-off-by: default avatarNeilBrown  <neilb@suse.de>
    ea358cd0
raid5.c 219 KB