Skip to content

Commit

Permalink
Merge pull request #3904 from gladkovdmitry17/rxm_dev
Browse files Browse the repository at this point in the history
prov/rxm: Fix multiple TX resource allocation
  • Loading branch information
shefty authored Mar 12, 2018
2 parents e76c9bc + 495f9f1 commit 171bb5b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions prov/rxm/src/rxm_ep.c
Original file line number Diff line number Diff line change
Expand Up @@ -977,16 +977,10 @@ rxm_ep_postpone_send(struct rxm_ep *rxm_ep, struct rxm_conn *rxm_conn,
FI_DBG(&rxm_prov, FI_LOG_EP_DATA,
"Buffer TX request (len - %zd) for %p conn\n", len, rxm_conn);

ret = rxm_ep_format_tx_res(rxm_ep, rxm_conn, context, count,
len, data, flags, tag, comp_flags,
&tx_buf, &tx_entry, pool);
if (OFI_UNLIKELY(ret))
return ret;

if (len > rxm_ep->rxm_info->tx_attr->inject_size) {
ret = (rxm_ep_alloc_lmt_tx_res(rxm_ep, rxm_conn, context, count, iov,
desc, len, data, flags, tag, comp_flags, op,
&tx_entry) < 0) ? ret : FI_SUCCESS;
&tx_entry) < 0) ? -FI_EAGAIN : FI_SUCCESS;
} else {
ret = rxm_ep_format_tx_res(rxm_ep, rxm_conn, context, count,
len, data, flags, tag, comp_flags,
Expand Down

0 comments on commit 171bb5b

Please sign in to comment.