@@ -253,14 +253,8 @@ cleanup_scatter_handles(ompi_coll_portals4_request_t *request)
253253 /**********************************/
254254 do {
255255 ret = PtlMEUnlink (request -> u .scatter .scatter_meh );
256- if (PTL_IN_USE == ret ) {
257- opal_output (ompi_coll_base_framework .framework_output ,
258- "%s:%4d: scatter_meh still in use (ret=%d, rank %2d)" ,
259- __FILE__ , __LINE__ , ret , request -> u .scatter .my_rank );
260- continue ;
261- }
262- if (PTL_OK != ret ) { ret = OMPI_ERROR ; line = __LINE__ ; goto err_hdlr ; }
263- } while (ret == PTL_IN_USE );
256+ } while (PTL_IN_USE == ret );
257+ if (PTL_OK != ret ) { ret = OMPI_ERROR ; line = __LINE__ ; goto err_hdlr ; }
264258
265259 ret = PtlCTFree (request -> u .scatter .scatter_cth );
266260 if (PTL_OK != ret ) { ret = OMPI_ERROR ; line = __LINE__ ; goto err_hdlr ; }
@@ -292,14 +286,8 @@ cleanup_sync_handles(ompi_coll_portals4_request_t *request)
292286 /**********************************/
293287 do {
294288 ret = PtlMEUnlink (request -> u .scatter .sync_meh );
295- if (PTL_IN_USE == ret ) {
296- opal_output (ompi_coll_base_framework .framework_output ,
297- "%s:%4d: sync_meh still in use (ret=%d, rank %2d)" ,
298- __FILE__ , __LINE__ , ret , request -> u .scatter .my_rank );
299- continue ;
300- }
301- if (PTL_OK != ret ) { ret = OMPI_ERROR ; line = __LINE__ ; goto err_hdlr ; }
302- } while (ret == PTL_IN_USE );
289+ } while (PTL_IN_USE == ret );
290+ if (PTL_OK != ret ) { ptl_ret = ret ; ret = OMPI_ERROR ; line = __LINE__ ; goto err_hdlr ; }
303291
304292 ret = PtlCTFree (request -> u .scatter .sync_cth );
305293 if (PTL_OK != ret ) { ptl_ret = ret ; ret = OMPI_ERROR ; line = __LINE__ ; goto err_hdlr ; }
0 commit comments