Grow: make sure mdmon is running for Grow_continue arrays.
when starting an array that is in the middle of a migration, we need to start mdmon, just as we do for arrays which are not in the middle of a migration. Repored-by: Adam Kwolek <adam.kwolek@intel.com> Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
parent
1403201652
commit
f362d22b5b
5
Grow.c
5
Grow.c
|
@ -3371,6 +3371,11 @@ int Grow_continue(int mdfd, struct supertype *st, struct mdinfo *info,
|
|||
container = buf;
|
||||
freeze(st);
|
||||
|
||||
if (!mdmon_running(st->container_dev))
|
||||
start_mdmon(st->container_dev);
|
||||
ping_monitor(devnum2devname(st->container_dev));
|
||||
|
||||
|
||||
if (info->reshape_active == 2) {
|
||||
int cfd = open_dev(st->container_dev);
|
||||
if (cfd < 0)
|
||||
|
|
Loading…
Reference in New Issue