summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2008-07-18 16:37:26 +1000
committerNeilBrown <neilb@suse.de>2008-07-18 16:37:26 +1000
commit33af8567de2f7b353abb53a0f6e9cffdc136a622 (patch)
treed408a086c6fb7cced39add23cba169205ed1891c
parentada6c2390a0a3a4572a8931823e6a83874d54509 (diff)
monitor: call get_resync_start on array shutdown.
If the array is shutdown as soon as resync finishes, we might not notice the resync finish. So on array shutdown, check for current resync pos. Signed-off-by: Neil Brown <neilb@suse.de>
-rw-r--r--monitor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/monitor.c b/monitor.c
index e29d023a..347cde79 100644
--- a/monitor.c
+++ b/monitor.c
@@ -220,6 +220,7 @@ static int read_and_act(struct active_array *a)
if (a->curr_state <= inactive &&
a->prev_state > inactive) {
/* array has been stopped */
+ get_resync_start(a);
a->container->ss->set_array_state(a, 1);
a->next_state = clear;
deactivate = 1;