Skip to content

Commit 9a9d106

Browse files
authored
Merge pull request #6555 from EmmanuelBRELLE/PR-pmlob1_fix_rc_for_putfrag_when_get_failed
pml/ob1: fixed exit from get_frag_fail when falling back on btl_put
2 parents 2c45f90 + 9c689f2 commit 9a9d106

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ompi/mca/pml/ob1/pml_ob1_recvreq.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,9 @@ static int mca_pml_ob1_recv_request_get_frag_failed (mca_pml_ob1_rdma_frag_t *fr
336336
if (OMPI_ERR_NOT_AVAILABLE == rc) {
337337
/* get isn't supported for this transfer. tell peer to fallback on put */
338338
rc = mca_pml_ob1_recv_request_put_frag (frag);
339-
if (OMPI_ERR_OUT_OF_RESOURCE == rc) {
339+
if (OMPI_SUCCESS == rc){
340+
return OMPI_SUCCESS;
341+
} else if (OMPI_ERR_OUT_OF_RESOURCE == rc) {
340342
OPAL_THREAD_LOCK(&mca_pml_ob1.lock);
341343
opal_list_append (&mca_pml_ob1.rdma_pending, (opal_list_item_t*)frag);
342344
OPAL_THREAD_UNLOCK(&mca_pml_ob1.lock);

0 commit comments

Comments
 (0)