Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Commit 15918c1

Browse files
committed
osc/pt2pt: do not drop/reacquire the ompi_request_lock
This lock is now recursive so it is safe to call into the pml without dropping the lock. Signed-off-by: Nathan Hjelm <[email protected]> (cherry picked from commit open-mpi/ompi@34ff629) Signed-off-by: Nathan Hjelm <[email protected]>
1 parent 9753665 commit 15918c1

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

ompi/mca/osc/pt2pt/osc_pt2pt_data_move.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1622,8 +1622,6 @@ static int ompi_osc_pt2pt_callback (ompi_request_t *request)
16221622
size_t incoming_length = request->req_status._ucount;
16231623
int source = request->req_status.MPI_SOURCE;
16241624

1625-
OPAL_THREAD_UNLOCK(&ompi_request_lock);
1626-
16271625
assert(incoming_length >= sizeof(ompi_osc_pt2pt_header_base_t));
16281626

16291627
OPAL_OUTPUT_VERBOSE((50, ompi_osc_base_framework.framework_output,
@@ -1666,8 +1664,6 @@ static int ompi_osc_pt2pt_callback (ompi_request_t *request)
16661664
osc_pt2pt_gc_add_request (module, request);
16671665
ompi_osc_pt2pt_frag_start_receive (module);
16681666

1669-
OPAL_THREAD_LOCK(&ompi_request_lock);
1670-
16711667
OPAL_OUTPUT_VERBOSE((50, ompi_osc_base_framework.framework_output,
16721668
"finished posting receive request"));
16731669

0 commit comments

Comments
 (0)