Skip to content

Commit 566850e

Browse files
committed
Merge pull request #1616 from hjelmn/rdma_fixes
osc/rdma: clear all_sync object when obtaining a lock
2 parents 67fd6fa + d3d779f commit 566850e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ompi/mca/osc/rdma/osc_rdma_passive_target.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* University of Stuttgart. All rights reserved.
99
* Copyright (c) 2004-2005 The Regents of the University of California.
1010
* All rights reserved.
11-
* Copyright (c) 2007-2015 Los Alamos National Security, LLC. All rights
11+
* Copyright (c) 2007-2016 Los Alamos National Security, LLC. All rights
1212
* reserved.
1313
* Copyright (c) 2010 IBM Corporation. All rights reserved.
1414
* Copyright (c) 2012-2013 Sandia National Laboratories. All rights reserved.
@@ -197,6 +197,8 @@ int ompi_osc_rdma_lock_atomic (int lock_type, int target, int assert, ompi_win_t
197197
return OMPI_ERR_RMA_SYNC;
198198
}
199199

200+
/* clear the global sync object (in case MPI_Win_fence was called) */
201+
module->all_sync.type = OMPI_OSC_RDMA_SYNC_TYPE_NONE;
200202

201203
/* create lock item */
202204
lock = ompi_osc_rdma_sync_allocate (module);

0 commit comments

Comments
 (0)