FIX: mdmon check in reshape_container() can cause a problem

When raid0 reshape is executed mdmon can dissappear due to raid level
takeover operation. If this happen before mdmon check, mdadm would treat
it as error condition. It is not true for this case.

Remove mdmon check from reshape_container() function.
Error condition check will remain using reshape_array() reentry test
for the same array (line 2577).

Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
Adam Kwolek 2012-01-12 08:12:47 +01:00 committed by NeilBrown
parent 5d1c7cdaca
commit 3c20f9899b
1 changed files with 0 additions and 6 deletions

6
Grow.c
View File

@ -2608,12 +2608,6 @@ int reshape_container(char *container, char *devname,
restart = 0;
if (rv)
break;
rv = !mdmon_running(devname2devnum(container));
if (rv) {
printf(Name ": Mdmon is not found. "
"Cannot continue container reshape.\n");
break;
}
}
if (!rv)
unfreeze(st);