Thread (19 messages) 19 messages, 2 authors, 2011-03-10

[PATCH 2/9] FIX: Block reshaped array monitoring

flat view
STALE5694d

From: Adam Kwolek <hidden>
Date: 2011-03-09 13:45:45
Subsystem: the rest · Maintainer: Linus Torvalds

When array under reshape is is assembled it has be disabled from monitoring
as soon as possible. It can accrue that this is i.e second array in container
and mdmon is loaded already.
Lack of blocking monitoring can cause change array state to active,
and reshape continuation will be not possible.

Signed-off-by: Adam Kwolek <redacted>
---

 Assemble.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/Assemble.c b/Assemble.c
index 20c27eb..fe917b2 100644
--- a/Assemble.c
+++ b/Assemble.c
@@ -1519,6 +1519,9 @@ int assemble_container_content(struct supertype *st, int mdfd,
 		if (sysfs_set_array(content, md_get_version(mdfd)) != 0)
 			return 1;
 
+	if (content->reshape_active)
+		block_subarray(content);
+
 	if (sra)
 		sysfs_free(sra);
 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help