Skip to content

UCP/EP/FLUSH: fix error handling flow#91

Merged
yosefe merged 1 commit intoyosefe:integration3from
evgeny-leksikov:integration3
Nov 17, 2020
Merged

UCP/EP/FLUSH: fix error handling flow#91
yosefe merged 1 commit intoyosefe:integration3from
evgeny-leksikov:integration3

Conversation

@evgeny-leksikov
Copy link
Copy Markdown
Collaborator

No description provided.

@evgeny-leksikov
Copy link
Copy Markdown
Collaborator Author

@yosefe pls take a look

ucs_assert(ep->flags & UCP_EP_FLAG_FAILED);
if (req->send.state.uct_comp.count > 0) {
destroyed_lanes = req->send.flush.started_lanes & ~all_lanes;
req->send.flush.started_lanes &= ~destroyed_lanes;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe &= all_lanes ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

anyway need to calculate destroyed_lanes for counter update, so IMO ~destroyed_lanes looks clearer - aligned with comment above and counter update

if (req->send.state.uct_comp.count > 0) {
destroyed_lanes = req->send.flush.started_lanes & ~all_lanes;
req->send.flush.started_lanes &= ~destroyed_lanes;
req->send.state.uct_comp.count -= ucs_popcount(destroyed_lanes);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

align on =
add ucs_debug that "req %p: lanes 0x%x were destroyed so reducing comp count by %d"

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

align on =

lines becomes too long, separated with ucs_debug

@yosefe yosefe merged commit 0041987 into yosefe:integration3 Nov 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants