summaryrefslogtreecommitdiff
path: root/Grow.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2013-08-28 17:00:53 +1000
committerNeilBrown <neilb@suse.de>2013-08-28 17:00:53 +1000
commit2cdd5ce0e703c46c5cead329d94ccc67c69fd4d0 (patch)
tree7c5a1ddf63b263f85ae86d19eb5d2698d3618a61 /Grow.c
parent7ac5d47e8ab465cb2321eaceb3a0f62748312ffe (diff)
Grow: fix hang when growing a RAID5.
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>
Diffstat (limited to 'Grow.c')
-rw-r--r--Grow.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Grow.c b/Grow.c
index ce80c523..5a6e4c24 100644
--- 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;
}