From: NeilBrown Date: Wed, 3 Jul 2013 01:39:28 +0000 (+1000) Subject: Grow: fix small bug when reshape interrupted. X-Git-Tag: mdadm-3.3-rc2~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=737f8574cdba8ac97e709c75a99088e83f5552b1;p=thirdparty%2Fmdadm.git 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 --- 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);