• N
    md: make sure MD_RECOVERY_DONE is clear before starting recovery/resync · ea358cd0
    NeilBrown 提交于
    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: NNeilBrown  <neilb@suse.de>
    ea358cd0
raid5.c 219.2 KB