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

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