]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Assemble.c
Assemble/Incremental: don't hold O_EXCL on mddev after assembly.
[thirdparty/mdadm.git] / Assemble.c
index 44e905bb8667a8dbbdce1d9a256efc1c62c50046..7e8e7957035239eae63f20debcf2b615186e0d9c 100644 (file)
@@ -1037,6 +1037,7 @@ static int start_array(int mdfd,
                } else
 #endif
                        rv = ioctl(mdfd, RUN_ARRAY, NULL);
+               reopen_mddev(mdfd); /* drop O_EXCL */
                if (rv == 0) {
                        if (c->verbose >= 0) {
                                pr_err("%s has been started with %d drive%s",