summaryrefslogtreecommitdiff
path: root/Grow.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2013-07-03 11:39:28 +1000
committerNeilBrown <neilb@suse.de>2013-07-04 17:10:37 +1000
commit737f8574cdba8ac97e709c75a99088e83f5552b1 (patch)
tree97ae5d54cfa12a62f9de870e1125a45e7cf6b296 /Grow.c
parentaef14b9e498ca5a9c6f46cbf422b4b73ec935d62 (diff)
Grow: fix small bug when reshape interrupted.
progress_reshape() may not set reshape_completed if the reshape is interrupted, so we need to initialize it to the current value before hand, so the value used afterwards is credible. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Grow.c')
-rw-r--r--Grow.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Grow.c b/Grow.c
index 8ca57e84..20ecf3fd 100644
--- a/Grow.c
+++ b/Grow.c
@@ -4203,6 +4203,7 @@ int child_monitor(int afd, struct mdinfo *sra, struct reshape *reshape,
wait_point = __le64_to_cpu(bsb.arraystart2);
}
+ reshape_completed = sra->reshape_progress;
rv = progress_reshape(sra, reshape,
backup_point, wait_point,
&suspend_point, &reshape_completed);