]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Unfreeze for non re-striping transitions
authorKrzysztof Wojcik <krzysztof.wojcik@intel.com>
Mon, 17 Jan 2011 01:56:43 +0000 (12:56 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 17 Jan 2011 01:56:43 +0000 (12:56 +1100)
For non re-striping transitions array must be unfrozen
before end of processing.
For restriping transitions we normally let the child
unfreeze the array but in this case there is no child.

Signed-off-by: Krzysztof Wojcik <krzysztof.wojcik@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Grow.c

diff --git a/Grow.c b/Grow.c
index e9a26749a893c454223cb46d07ea80ea22d55800..df736eda321004efed2d24266603bbb384717e0e 100644 (file)
--- a/Grow.c
+++ b/Grow.c
@@ -1725,9 +1725,7 @@ static int reshape_array(char *container, int fd, char *devname,
                                printf("chunk size for %s set to %d\n",
                                       devname, info->array.chunk_size);
                }
-
-               if (!forked)
-                       unfreeze(st);
+               unfreeze(st);
                return 0;
        }