]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
FIX: mdmon check in reshape_container() can cause a problem
authorAdam Kwolek <adam.kwolek@intel.com>
Thu, 12 Jan 2012 07:12:47 +0000 (08:12 +0100)
committerNeilBrown <neilb@suse.de>
Mon, 30 Jan 2012 00:36:25 +0000 (11:36 +1100)
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>
Grow.c

diff --git a/Grow.c b/Grow.c
index 89f563c608b7b57cfe7fcbe75fb5509944dc28af..c1bc1cac9c6dc3a5251a41d64a5c95a4ba6bf6c2 100644 (file)
--- 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);