1
0
Fork 0

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 <artur.paszkiewicz@intel.com>
Signed-off-by: Shaohua Li <shli@fb.com>
hifive-unleashed-5.1
Artur Paszkiewicz 2017-09-29 22:54:18 +02:00 committed by Shaohua Li
parent 385f4d7f94
commit 611426e273
1 changed files with 1 additions and 2 deletions

View 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) {
/*