Thread (36 messages) flat view 36 messages, 2 authors, 2011-01-06
STALE5704d

[PATCH 34/34] Raid0: detect reshape on array start

From: Adam Kwolek <hidden>
Date: 2011-01-04 14:40:06
Subsystem: the rest · Maintainer: Linus Torvalds

When raid0 array is takeovered to raid4 for reshape it should be possible to detect
that array for reshape is monitored now for metadata update.

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

 monitor.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/monitor.c b/monitor.c
index 937cc6b..a0068d3 100644
--- a/monitor.c
+++ b/monitor.c
@@ -235,6 +235,13 @@ static int read_and_act(struct active_array *a)
 		}
 	}
 
+	if (a->curr_state > inactive &&
+	    a->prev_state == inactive) {
+		/* array has been started
+		 * possible that container operation has to be completed
+		 */
+		a->container->ss->set_array_state(a, 0);
+	}
 	if (a->curr_state <= inactive &&
 	    a->prev_state > inactive) {
 		/* array has been stopped */
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help