Skip to content

Commit 2a4bc0c

Browse files
EmmanuelBRELLEjsquyres
authored andcommitted
pml/ob1: fixed exit from get_frag_fail when falling back on btl_put
In the case the btl_get fails Ob1 tries to fallback on btl_put first but the return code was ignored. So the code fell back on both btl_put and btl_send. Signed-off-by: Brelle Emmanuel <[email protected]> (cherry picked from commit 9c689f2)
1 parent 9b73e8a commit 2a4bc0c

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
@@ -330,7 +330,9 @@ static int mca_pml_ob1_recv_request_get_frag_failed (mca_pml_ob1_rdma_frag_t *fr
330330
if (OMPI_ERR_NOT_AVAILABLE == rc) {
331331
/* get isn't supported for this transfer. tell peer to fallback on put */
332332
rc = mca_pml_ob1_recv_request_put_frag (frag);
333-
if (OMPI_ERR_OUT_OF_RESOURCE == rc) {
333+
if (OMPI_SUCCESS == rc){
334+
return OMPI_SUCCESS;
335+
} else if (OMPI_ERR_OUT_OF_RESOURCE == rc) {
334336
OPAL_THREAD_LOCK(&mca_pml_ob1.lock);
335337
opal_list_append (&mca_pml_ob1.rdma_pending, (opal_list_item_t*)frag);
336338
OPAL_THREAD_UNLOCK(&mca_pml_ob1.lock);

0 commit comments

Comments
 (0)