From: Adam Kwolek Date: Thu, 12 Jan 2012 07:12:47 +0000 (+0100) Subject: FIX: mdmon check in reshape_container() can cause a problem X-Git-Tag: mdadm-3.2.4~105 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3c20f9899bc95b35f5b9544c6741b4fccd616326;p=thirdparty%2Fmdadm.git 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 Signed-off-by: NeilBrown --- diff --git a/Grow.c b/Grow.c index 89f563c6..c1bc1cac 100644 --- a/Grow.c +++ b/Grow.c @@ -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);