Skip to content

Commit aa2d21e

Browse files
committed
lustre_file_open: avoid explicit locking on lustre file systems
Signed-off-by: Edgar Gabriel <[email protected]>
1 parent 2c61074 commit aa2d21e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ompi/mca/fs/lustre/fs_lustre_file_open.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Copyright (c) 2004-2005 The Regents of the University of California.
1111
* All rights reserved.
1212
* Copyright (c) 2008-2018 University of Houston. All rights reserved.
13-
* Copyright (c) 2015-2018 Research Organization for Information Science
13+
* Copyright (c) 2015-2020 Research Organization for Information Science
1414
* and Technology (RIST). All rights reserved.
1515
* Copyright (c) 2016-2017 IBM Corporation. All rights reserved.
1616
* $COPYRIGHT$
@@ -144,6 +144,7 @@ mca_fs_lustre_file_open (struct ompi_communicator_t *comm,
144144
fh->f_stripe_size = lump->lmm_stripe_size;
145145
fh->f_stripe_count = lump->lmm_stripe_count;
146146
fh->f_fs_block_size = lump->lmm_stripe_size;
147+
fh->f_flags |= OMPIO_LOCK_NEVER;
147148

148149
return OMPI_SUCCESS;
149150
}

0 commit comments

Comments
 (0)