From 4867e068e3cc790fe084f0687b5aea70524dfbfb Mon Sep 17 00:00:00 2001 From: Adam Kwolek Date: Thu, 6 Jan 2011 19:27:25 +1100 Subject: [PATCH] Raid0: detect reshape on array start 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 Signed-off-by: NeilBrown --- monitor.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/monitor.c b/monitor.c index 4efe5da7..1107d477 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 */ -- 2.47.2