Avoid double-unfreeze of arrays during grow.

Once we have called reshape_container or reshape_super we have handed
on the responsibility for unfreezing the array, so Grow_reshape
shouldn't call unfreeze.

Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
NeilBrown 2011-01-11 14:41:47 +11:00
parent 4a8703648a
commit f94eedafc1
1 changed files with 2 additions and 0 deletions

2
Grow.c
View File

@ -1595,6 +1595,8 @@ int Grow_reshape(char *devname, int fd, int quiet, char *backup_file,
rv = reshape_array(container, fd, devname, st, &info, force,
backup_file, quiet, 0);
}
/* reshape_* released the array */
return rv;
release:
unfreeze(st, frozen);
return rv;