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>
This commit is contained in:
NeilBrown 2013-07-03 11:39:28 +10:00
parent aef14b9e49
commit 737f8574cd
1 changed files with 1 additions and 0 deletions

1
Grow.c
View File

@ -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);