Message ID | 20220728122101.28744-5-colyli@suse.de (mailing list archive) |
---|---|
State | Not Applicable, archived |
Delegated to: | Jes Sorensen |
Headers | show |
Series | mdadm-CI for-jes/20220728: patches for merge | expand |
diff --git a/Grow.c b/Grow.c index 8c520d42..97f22c75 100644 --- a/Grow.c +++ b/Grow.c @@ -3514,7 +3514,6 @@ started: return 0; } - close(fd); /* Now we just need to kick off the reshape and watch, while * handling backups of the data... * This is all done by a forked background process. @@ -3535,6 +3534,9 @@ started: break; } + /* Close unused file descriptor in the forked process */ + close_fd(&fd); + /* If another array on the same devices is busy, the * reshape will wait for them. This would mean that * the first section that we suspend will stay suspended