Skip to content

Commit 92cfb04

Browse files
author
rhc54
committed
Merge pull request open-mpi#1206 from ggouaillardet/topic/v1.10/romio_barrier_in_close
romio: add a MPI_Barrier in MPI_File_close() whenever shared file sup…
2 parents 3849571 + a0ea9fb commit 92cfb04

File tree

1 file changed

+3
-3
lines changed
  • ompi/mca/io/romio/romio/mpi-io

1 file changed

+3
-3
lines changed

ompi/mca/io/romio/romio/mpi-io/close.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ int MPI_File_close(MPI_File *fh)
5656
/* POSIX semantics say a deleted file remains available until all
5757
* processes close the file. But since when was NFS posix-compliant?
5858
*/
59-
if (!ADIO_Feature(adio_fh, ADIO_UNLINK_AFTER_CLOSE)) {
60-
MPI_Barrier((adio_fh)->comm);
61-
}
59+
/* this used to be gated by the lack of the UNLINK_AFTER_CLOSE feature,
60+
* but a race condition in GPFS necessated this. See ticket #2214 */
61+
MPI_Barrier((adio_fh)->comm);
6262
if ((adio_fh)->shared_fp_fd != ADIO_FILE_NULL) {
6363
MPI_File *fh_shared = &(adio_fh->shared_fp_fd);
6464
ADIO_Close((adio_fh)->shared_fp_fd, &error_code);

0 commit comments

Comments
 (0)