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:
parent
aef14b9e49
commit
737f8574cd
1
Grow.c
1
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);
|
||||
|
|
Loading…
Reference in New Issue