raid5-ppl: don't resync after rebuild
authorArtur Paszkiewicz <artur.paszkiewicz@intel.com>
Fri, 29 Sep 2017 20:54:18 +0000 (22:54 +0200)
committerShaohua Li <shli@fb.com>
Tue, 17 Oct 2017 02:06:34 +0000 (19:06 -0700)
The check for degraded array is unnecessary and causes a resync to be
performed after ppl recovery and rebuild when restarting an array during
rebuilding after unclean shutdown.

Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid5-ppl.c

index cd026c8..76d6245 100644 (file)
@@ -1296,8 +1296,7 @@ int ppl_init_log(struct r5conf *conf)
 
        if (ret) {
                goto err;
-       } else if (!mddev->pers &&
-                  mddev->recovery_cp == 0 && !mddev->degraded &&
+       } else if (!mddev->pers && mddev->recovery_cp == 0 &&
                   ppl_conf->recovered_entries > 0 &&
                   ppl_conf->mismatch_count == 0) {
                /*