Skip to content

Commit d787492

Browse files
committed
btl/ugni: set the frag reference count in the eager get path
This comit adds code that sets the fragment reg_cnt to 1 when sending the completion message for an eager get. Without this the btl will either hang or abort. Signed-off-by: Nathan Hjelm <[email protected]>
1 parent 2bfd6a9 commit d787492

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

opal/mca/btl/ugni/btl_ugni_get.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ static void mca_btl_ugni_callback_eager_get (struct mca_btl_base_module_t *btl,
115115
/* fill in the response header */
116116
frag->hdr.rdma.ctx = frag->hdr.eager.ctx;
117117
frag->flags = MCA_BTL_UGNI_FRAG_RESPONSE;
118+
frag->ref_cnt = 1;
118119

119120
/* once complete use this fragment for a pending eager get if any exist */
120121
frag->base.des_cbfunc = mca_btl_ugni_callback_eager_get_progress_pending;

0 commit comments

Comments
 (0)