Blame SOURCES/imsm-always-do-ppl-recovery-when-starting-a-rebuildi.patch

2c1b57
From 98e96bdbefaf0bf1c3d4161862af1ab6d03da1db Mon Sep 17 00:00:00 2001
2c1b57
From: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
2c1b57
Date: Thu, 28 Sep 2017 14:41:16 +0200
2c1b57
Subject: [PATCH 10/12] imsm: always do ppl recovery when starting a
2c1b57
 rebuilding array
2c1b57
2c1b57
Set resync_start to 0 when starting a rebuilding array to make the
2c1b57
kernel perform ppl recovery before the rebuild.
2c1b57
2c1b57
Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
2c1b57
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
2c1b57
---
2c1b57
 super-intel.c | 3 +++
2c1b57
 1 file changed, 3 insertions(+)
2c1b57
2c1b57
diff --git a/super-intel.c b/super-intel.c
2c1b57
index 501d0c3..996d133 100644
2c1b57
--- a/super-intel.c
2c1b57
+++ b/super-intel.c
2c1b57
@@ -7756,6 +7756,9 @@ static struct mdinfo *container_content_imsm(struct supertype *st, char *subarra
2c1b57
 						map->blocks_per_strip;
2c1b57
 				info_d->ppl_sector = this->ppl_sector;
2c1b57
 				info_d->ppl_size = this->ppl_size;
2c1b57
+				if (this->consistency_policy == CONSISTENCY_POLICY_PPL &&
2c1b57
+				    recovery_start == 0)
2c1b57
+					this->resync_start = 0;
2c1b57
 			} else {
2c1b57
 				info_d->component_size = blocks_per_member(map);
2c1b57
 			}
2c1b57
-- 
2c1b57
2.7.4
2c1b57