]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Grow: fix hang when growing a RAID5.
authorNeilBrown <neilb@suse.de>
Wed, 28 Aug 2013 07:00:53 +0000 (17:00 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 28 Aug 2013 07:00:53 +0000 (17:00 +1000)
Since:

commit 84d11e6c6a3b827b2daa32e16303235ce33d49f5
Author: NeilBrown <neilb@suse.de>
Date:   Thu Aug 1 11:16:14 2013 +1000

    Grow: exit background thread cleanly on SIGTERM.

removed the setting of "sync_max" from abort_reshape() we need
to do it explicitly here.

Signed-off-by: NeilBrown <neilb@suse.de>
Grow.c

diff --git a/Grow.c b/Grow.c
index ce80c523f715cfdf6768957d7730b7a4d04ca16e..5a6e4c24bd87b2b73ce68d8e42c1bb926f76edf9 100644 (file)
--- a/Grow.c
+++ b/Grow.c
@@ -4262,6 +4262,7 @@ int child_monitor(int afd, struct mdinfo *sra, struct reshape *reshape,
                }
                if (rv == 0 && increasing && !st->ss->external) {
                        /* No longer need to monitor this reshape */
+                       sysfs_set_str(sra, NULL, "sync_max", "max");
                        done = 1;
                        break;
                }