Skip to content

Commit b6b593d

Browse files
Pull request #10473 from jotabf/patch-2
osc/rdma: removed deadlock in find dynamic region Signed-off-by: João Batista Fernandes <[email protected]> (cherry picked from commit 9779b99)
1 parent 1c67bf1 commit b6b593d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

ompi/mca/osc/rdma/osc_rdma_dynamic.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -466,12 +466,9 @@ int ompi_osc_rdma_find_dynamic_region (ompi_osc_rdma_module_t *module, ompi_osc_
466466
" (len %lu)", base, base + len, (unsigned long) len);
467467

468468
OPAL_THREAD_LOCK(&module->lock);
469-
// Make sure region isn't being touched.
470-
ompi_osc_rdma_lock_acquire_exclusive (module, peer, offsetof (ompi_osc_rdma_state_t, regions_lock));
471469
if (!ompi_osc_rdma_peer_local_state (peer)) {
472470
ret = ompi_osc_rdma_refresh_dynamic_region (module, dy_peer);
473471
if (OMPI_SUCCESS != ret) {
474-
ompi_osc_rdma_lock_release_exclusive (module, peer, offsetof (ompi_osc_rdma_state_t, regions_lock));
475472
return ret;
476473
}
477474

@@ -488,7 +485,6 @@ int ompi_osc_rdma_find_dynamic_region (ompi_osc_rdma_module_t *module, ompi_osc_
488485
ret = OMPI_ERR_RMA_RANGE;
489486
}
490487
OPAL_THREAD_UNLOCK(&module->lock);
491-
ompi_osc_rdma_lock_release_exclusive (module, peer, offsetof (ompi_osc_rdma_state_t, regions_lock));
492488

493489
/* round a matching region */
494490
return ret;

0 commit comments

Comments
 (0)