]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Assemble.c
Make sure NOFILE resource limit is big enough.
[thirdparty/mdadm.git] / Assemble.c
index 7e8cdb4de8ee75a16cfedb2a7b06dded4159ba13..b45abc2f408d4ad27ff4f7d55a03af8b51470d62 100644 (file)
@@ -1618,6 +1618,7 @@ try_again:
                        pr_err(":%s has an active reshape - checking "
                               "if critical section needs to be restored\n",
                               chosen_name);
+               enable_fds(bestcnt/2);
                for (i = 0; i < bestcnt/2; i++) {
                        int j = best[i*2];
                        if (j >= 0) {