diff options
author | Artur Paszkiewicz <artur.paszkiewicz@intel.com> | 2017-09-29 22:54:18 +0200 |
---|---|---|
committer | Shaohua Li <shli@fb.com> | 2017-10-16 19:06:34 -0700 |
commit | 611426e2737235cf05e1b8f27d2502b96a5e05d9 (patch) | |
tree | bfe1847fd20c9047279058067df11d7dbe401481 /drivers/md/raid5-ppl.c | |
parent | 385f4d7f946b08f36f68b0a28e95a319925b6b62 (diff) | |
download | linux-stable-611426e2737235cf05e1b8f27d2502b96a5e05d9.tar.gz linux-stable-611426e2737235cf05e1b8f27d2502b96a5e05d9.tar.bz2 linux-stable-611426e2737235cf05e1b8f27d2502b96a5e05d9.zip |
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>
Diffstat (limited to 'drivers/md/raid5-ppl.c')
-rw-r--r-- | drivers/md/raid5-ppl.c | 3 |
1 files changed, 1 insertions, 2 deletions
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) { /* |