Blame SOURCES/0001-Assemble-keep-MD_DISK_FAILFAST-and-MD_DISK_WRITEMOST.patch

5d5466
From 0833f9c3dbaaee202b92ea956f9e2decc7b9593a Mon Sep 17 00:00:00 2001
5d5466
From: Gioh Kim <gi-oh.kim@profitbricks.com>
5d5466
Date: Tue, 6 Nov 2018 15:27:42 +0100
5d5466
Subject: [RHEL7.7 PATCH 01/24] Assemble: keep MD_DISK_FAILFAST and
5d5466
 MD_DISK_WRITEMOSTLY flag
5d5466
5d5466
Before updating superblock of slave disks, desired_state value
5d5466
is set for the target state of the slave disks. But it forgets
5d5466
to check MD_DISK_FAILFAST and MD_DISK_WRITEMOSTLY flags. Then
5d5466
start_arrays() calls ADD_NEW_DISK ioctl-call and pass the state
5d5466
without MD_DISK_FAILFAST and MD_DISK_WRITEMOSTLY.
5d5466
5d5466
Currenlty it does not generate any problem because kernel does not
5d5466
care MD_DISK_FAILFAST or MD_DISK_WRITEMOSTLY flags.
5d5466
5d5466
Reviewed-by: NeilBrown <neilb@suse.com>
5d5466
Signed-off-by: Gioh Kim <gi-oh.kim@profitbricks.com>
5d5466
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
5d5466
---
5d5466
 Assemble.c | 3 +++
5d5466
 1 file changed, 3 insertions(+)
5d5466
5d5466
diff --git a/Assemble.c b/Assemble.c
5d5466
index a79466c..f39c9e1 100644
5d5466
--- a/Assemble.c
5d5466
+++ b/Assemble.c
5d5466
@@ -1704,6 +1704,9 @@ try_again:
5d5466
 		else
5d5466
 			desired_state = (1<
5d5466
 
5d5466
+		desired_state |= devices[j].i.disk.state & ((1<
5d5466
+							    (1<
5d5466
+
5d5466
 		if (!devices[j].uptodate)
5d5466
 			continue;
5d5466
 
5d5466
-- 
5d5466
2.7.5
5d5466