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

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