Blame SOURCES/0027-mdadm-Fix-array-size-mismatch-after-grow.patch

c0f891
From 42e02e613fb0b4a2c0c0d984b9e6e2933875bb44 Mon Sep 17 00:00:00 2001
c0f891
From: Lukasz Florczak <lukasz.florczak@linux.intel.com>
c0f891
Date: Fri, 22 Jul 2022 08:43:47 +0200
c0f891
Subject: [PATCH 27/52] mdadm: Fix array size mismatch after grow
c0f891
c0f891
imsm_fix_size_mismatch() is invoked to fix the problem, but it couldn't
c0f891
proceed due to migration check. This patch allows for intended behavior.
c0f891
c0f891
Signed-off-by: Lukasz Florczak <lukasz.florczak@linux.intel.com>
c0f891
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
c0f891
---
c0f891
 super-intel.c | 2 +-
c0f891
 1 file changed, 1 insertion(+), 1 deletion(-)
c0f891
c0f891
diff --git a/super-intel.c b/super-intel.c
c0f891
index 8ffe485c..76b947f5 100644
c0f891
--- a/super-intel.c
c0f891
+++ b/super-intel.c
c0f891
@@ -11854,7 +11854,7 @@ static int imsm_fix_size_mismatch(struct supertype *st, int subarray_index)
c0f891
 		unsigned long long d_size = imsm_dev_size(dev);
c0f891
 		int u_size;
c0f891
 
c0f891
-		if (calc_size == d_size || dev->vol.migr_type == MIGR_GEN_MIGR)
c0f891
+		if (calc_size == d_size)
c0f891
 			continue;
c0f891
 
c0f891
 		/* There is a difference, confirm that imsm_dev_size is
c0f891
-- 
c0f891
2.31.1
c0f891