]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - mdadm.c
Stop managed arrays more carefully.
[thirdparty/mdadm.git] / mdadm.c
diff --git a/mdadm.c b/mdadm.c
index 6fe6b99f3024bd88c7a569c5c59e5b4c32f2ee8b..8b4b5dffbacceb81dbb05fb7e438ead3052abecc 100644 (file)
--- a/mdadm.c
+++ b/mdadm.c
@@ -1257,16 +1257,6 @@ int main(int argc, char *argv[])
 
                                                        put_md_name(name);
                                                }
-                                               /* This is a bit of a hack.
-                                                * When we stop an array in a container, it
-                                                * takes a moment for mdmon to let go.
-                                                * So just pause briefly incase that is
-                                                * happening.  Maybe we should do something
-                                                * more deterministic via the socket.
-                                                */
-                                               if (progress && err)
-                                                       usleep(50000);
-
                                        } while (!last && err);
                                        if (err) rv |= 1;
                                } else {