Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UCP/EP/CLOSE: discard ep_close(FLUSH) mode #200

Merged
merged 1 commit into from
Sep 3, 2021

Conversation

hoopoepg
Copy link

@hoopoepg hoopoepg commented Sep 2, 2021

  • due to lack of support close protocol have to discard
    ep_close(FLUSH) mode, use ep_close(FORCE) instead
  • removed flush(LOCAL) call from CM disconnect event due to
    request leak

- due to lack of support close protocol have to discard
  ep_close(FLUSH) mode, use ep_close(FORCE) instead
- removed flush(LOCAL) call from CM disconnect event due to
  request leak
@@ -534,7 +445,6 @@ static unsigned ucp_ep_cm_disconnect_progress(void *arg)
ucs_assert(!(ucp_ep->flags & UCP_EP_FLAG_CLOSE_REQ_VALID));
} else if (ucp_ep->flags & UCP_EP_FLAG_LOCAL_CONNECTED) {
/* if the EP is local connected, need to flush it from main thread first */
ucp_ep_cm_remote_disconnect_progress(ucp_ep);
Copy link
Owner

Choose a reason for hiding this comment

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

do we need to call ucp_ep_cm_disconnect_cm_lane() as if flush is completed?
@evgeny-leksikov wdyt?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think so, because the only thing which is allowed and mandatory after err callback - close the EP (and only forced starting from this PR)

Copy link
Owner

Choose a reason for hiding this comment

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

so we rely on use to close the ep (from err callback) which will call ucp_ep_cm_disconnect_cm_lane?

Copy link
Collaborator

Choose a reason for hiding this comment

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

yes, actually it does not matter disconnect or close CM lane

@yosefe yosefe merged commit 4a1b9c8 into yosefe:integration3 Sep 3, 2021
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.

3 participants