Skip to content

Commit

Permalink
Merge pull request #7432 from yosefe/topic/ucp-am-fix-request-datatyp…
Browse files Browse the repository at this point in the history
…e-state-during

UCP/AM: Fix request datatype state during CM switch
  • Loading branch information
yosefe authored Sep 22, 2021
2 parents 70e216d + 5b9dcf4 commit eb2aa0d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ucp/proto/proto_am.inl
Original file line number Diff line number Diff line change
Expand Up @@ -301,13 +301,16 @@ ucs_status_t ucp_do_am_zcopy_single(uct_pending_req_t *self, uint8_t am_id,
ucp_ep_t *ep = req->send.ep;
size_t max_iov = ucp_ep_config(ep)->am.max_iov;
uct_iov_t *iov = ucs_alloca(max_iov * sizeof(uct_iov_t));
ucp_dt_state_t state = req->send.state.dt;
size_t iovcnt = 0;
ucp_dt_state_t state;
ucs_status_t status;

req->send.lane = ucp_ep_get_am_lane(ep);
ucp_send_request_add_reg_lane(req, req->send.lane);

/* Cache datatype state only after registering the lane, since registering
the lane can change the state */
state = req->send.state.dt;
status = ucp_am_zcopy_common(req, hdr, hdr_size, user_hdr_desc,
user_hdr_size, 0ul, iov, iovcnt, max_iov,
req->send.length, am_id, &state, 0);
Expand Down

0 comments on commit eb2aa0d

Please sign in to comment.