13
13
* Copyright (c) 2008 UT-Battelle, LLC. All rights reserved.
14
14
* Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved.
15
15
* Copyright (c) 2012 NVIDIA Corporation. All rights reserved.
16
- * Copyright (c) 2012-2015 Los Alamos National Security, LLC. All rights
16
+ * Copyright (c) 2012-2016 Los Alamos National Security, LLC. All rights
17
17
* reserved.
18
18
* Copyright (c) 2015 Cisco Systems, Inc. All rights reserved.
19
19
* $COPYRIGHT$
@@ -495,9 +495,6 @@ int mca_pml_ob1_send_request_start_copy( mca_pml_ob1_send_request_t* sendreq,
495
495
if ( OPAL_LIKELY (OMPI_SUCCESS == rc ) ) {
496
496
/* signal request completion */
497
497
send_request_pml_complete (sendreq );
498
-
499
- /* check for pending requests */
500
- MCA_PML_OB1_PROGRESS_PENDING (bml_btl );
501
498
return OMPI_SUCCESS ;
502
499
}
503
500
@@ -688,9 +685,6 @@ int mca_pml_ob1_send_request_start_rdma( mca_pml_ob1_send_request_t* sendreq,
688
685
frag -> cbfunc = mca_pml_ob1_rget_completion ;
689
686
/* do not store the local handle in the fragment. it will be released by mca_pml_ob1_free_rdma_resources */
690
687
691
- /* save the fragment for get->put fallback */
692
- sendreq -> rdma_frag = frag ;
693
-
694
688
reg_size = bml_btl -> btl -> btl_registration_handle_size ;
695
689
696
690
/* allocate space for get hdr + segment list */
@@ -699,9 +693,13 @@ int mca_pml_ob1_send_request_start_rdma( mca_pml_ob1_send_request_t* sendreq,
699
693
MCA_BTL_DES_FLAGS_SIGNAL );
700
694
if ( OPAL_UNLIKELY (NULL == des ) ) {
701
695
/* NTH: no need to reset the converter here. it will be reset before it is retried */
696
+ MCA_PML_OB1_RDMA_FRAG_RETURN (frag );
702
697
return OMPI_ERR_OUT_OF_RESOURCE ;
703
698
}
704
699
700
+ /* save the fragment for get->put fallback */
701
+ sendreq -> rdma_frag = frag ;
702
+
705
703
/* build match header */
706
704
hdr = (mca_pml_ob1_rget_hdr_t * ) des -> des_segments -> seg_addr .pval ;
707
705
/* TODO -- Add support for multiple segments for get */
0 commit comments