Skip to content

Commit

Permalink
UCP/RECV: Save prev request flags
Browse files Browse the repository at this point in the history
  • Loading branch information
yosefe committed Sep 8, 2020
1 parent a0f02de commit 5a6d574
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/ucp/core/ucp_request.h
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ struct ucp_request {
ucp_dt_state_t state;
ucp_worker_t *worker;
uct_tag_context_t uct_ctx; /* Transport offload context */
unsigned prev_flags;

union {
struct {
Expand Down
1 change: 1 addition & 0 deletions src/ucp/tag/tag_recv.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ ucp_tag_recv_common(ucp_worker_h worker, void *buffer, size_t count,
ucp_tag_eager_sync_send_ack(worker, rdesc + 1, rdesc->flags);
}

req->recv.prev_flags = req->flags;
req->flags = UCP_REQUEST_FLAG_RECV | req_flags;
hdr_len = rdesc->payload_offset;
recv_len = rdesc->length - hdr_len;
Expand Down

0 comments on commit 5a6d574

Please sign in to comment.