diff options
author | NeilBrown <neilb@suse.de> | 2008-07-18 16:37:26 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2008-07-18 16:37:26 +1000 |
commit | 33af8567de2f7b353abb53a0f6e9cffdc136a622 (patch) | |
tree | d408a086c6fb7cced39add23cba169205ed1891c /monitor.c | |
parent | ada6c2390a0a3a4572a8931823e6a83874d54509 (diff) | |
download | mdadm-33af8567de2f7b353abb53a0f6e9cffdc136a622.tar.gz mdadm-33af8567de2f7b353abb53a0f6e9cffdc136a622.tar.xz mdadm-33af8567de2f7b353abb53a0f6e9cffdc136a622.zip |
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>
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |