@@ -1062,21 +1062,18 @@ int ompi_osc_ucx_rput(const void *origin_addr, int origin_count,
10621062
10631063 CHECK_DYNAMIC_WIN (remote_addr , module , target , ret , true);
10641064
1065- OMPI_OSC_UCX_REQUEST_ALLOC (win , ucx_req );
1066- assert (NULL != ucx_req );
1067-
10681065 ret = ompi_osc_ucx_put (origin_addr , origin_count , origin_dt , target , target_disp ,
10691066 target_count , target_dt , win );
10701067 if (ret != OMPI_SUCCESS ) {
1071- OMPI_OSC_UCX_REQUEST_RETURN (ucx_req );
10721068 return ret ;
10731069 }
10741070
1071+ OMPI_OSC_UCX_REQUEST_ALLOC (win , ucx_req );
1072+
10751073 mca_osc_ucx_component .num_incomplete_req_ops ++ ;
10761074 ret = opal_common_ucx_wpmem_flush_ep_nb (mem , target , req_completion , ucx_req );
10771075
10781076 if (ret != OMPI_SUCCESS ) {
1079-
10801077 /* fallback to using an atomic op to acquire a request handle */
10811078 ret = opal_common_ucx_wpmem_fence (mem );
10821079 if (ret != OMPI_SUCCESS ) {
@@ -1118,21 +1115,18 @@ int ompi_osc_ucx_rget(void *origin_addr, int origin_count,
11181115
11191116 CHECK_DYNAMIC_WIN (remote_addr , module , target , ret , true);
11201117
1121- OMPI_OSC_UCX_REQUEST_ALLOC (win , ucx_req );
1122- assert (NULL != ucx_req );
1123-
11241118 ret = ompi_osc_ucx_get (origin_addr , origin_count , origin_dt , target , target_disp ,
11251119 target_count , target_dt , win );
11261120 if (ret != OMPI_SUCCESS ) {
1127- OMPI_OSC_UCX_REQUEST_RETURN (ucx_req );
11281121 return ret ;
11291122 }
11301123
1124+ OMPI_OSC_UCX_REQUEST_ALLOC (win , ucx_req );
1125+
11311126 mca_osc_ucx_component .num_incomplete_req_ops ++ ;
11321127 ret = opal_common_ucx_wpmem_flush_ep_nb (mem , target , req_completion , ucx_req );
11331128
11341129 if (ret != OMPI_SUCCESS ) {
1135-
11361130 /* fallback to using an atomic op to acquire a request handle */
11371131 ret = opal_common_ucx_wpmem_fence (mem );
11381132 if (ret != OMPI_SUCCESS ) {
0 commit comments