From e4b1107355815e16467cf8063c4a43996b55dc1e Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Tue, 1 Feb 2011 10:08:24 +1100 Subject: [PATCH] Grow: make sure to break out of the backup loop when finished. If there is nothing more to backup, then break out of the loop. Signed-off-by: NeilBrown --- Grow.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Grow.c b/Grow.c index cdabce1f..8229b4d4 100644 --- a/Grow.c +++ b/Grow.c @@ -2945,6 +2945,8 @@ int child_monitor(int afd, struct mdinfo *sra, struct reshape *reshape, if (offset < suspend_point/data) break; } + if (actual_stripes == 0) + break; grow_backup(sra, offset, actual_stripes, fds, offsets, disks, chunk, level, layout, -- 2.39.5