diff options
author | NeilBrown <neilb@suse.de> | 2013-07-03 11:39:28 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2013-07-04 17:10:37 +1000 |
commit | 737f8574cdba8ac97e709c75a99088e83f5552b1 (patch) | |
tree | 97ae5d54cfa12a62f9de870e1125a45e7cf6b296 /Grow.c | |
parent | aef14b9e498ca5a9c6f46cbf422b4b73ec935d62 (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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |