From: Artur Paszkiewicz Date: Fri, 29 Sep 2017 20:54:18 +0000 (+0200) Subject: raid5-ppl: don't resync after rebuild X-Git-Tag: rel_imx_4.19.35_1.1.0~11308^2~28 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=611426e2737235cf05e1b8f27d2502b96a5e05d9;p=linux.git raid5-ppl: don't resync after rebuild 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 Signed-off-by: Shaohua Li --- diff --git a/drivers/md/raid5-ppl.c b/drivers/md/raid5-ppl.c index cd026c88f7ef..76d6245427b8 100644 --- a/drivers/md/raid5-ppl.c +++ b/drivers/md/raid5-ppl.c @@ -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) { /*