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

NA_OFI: explictly complete NON-RECV OP in na_ofi_op_cancel for verbs #532

Closed
wants to merge 1 commit into from
Closed

Conversation

liuxuezhao
Copy link
Collaborator

By kinds of testing, verbs provider will not generate complete
event for the fi_cancel() for non-recv operations. This cause
HG_Cancel() will not trigger RPC's completion as expected.
This patch fixes it by na_ofi_complete() it for verbs provider.

Signed-off-by: Xuezhao Liu [email protected]

By kinds of testing, verbs provider will not generate complete
event for the fi_cancel() for non-recv operations. This cause
HG_Cancel() will not trigger RPC's completion as expected.
This patch fixes it by na_ofi_complete() it for verbs provider.

Signed-off-by: Xuezhao Liu <[email protected]>
@@ -3690,6 +3690,11 @@ na_ofi_op_cancel(struct na_ofi_op_id *na_ofi_op_id)
op, "fi_cancel() rc: %d (%s)", (int) rc, fi_strerror((int) -rc));
(void) rc;

if (na_ofi_op_id->na_ofi_class->domain->prov_type == NA_OFI_PROV_VERBS &&
na_ofi_op_id->completion_data.callback_info.type != NA_CB_RECV_UNEXPECTED &&
na_ofi_op_id->completion_data.callback_info.type != NA_CB_RECV_EXPECTED)
Copy link
Contributor

Choose a reason for hiding this comment

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

my concern is, if we need do this for NA_CB_PUT/GET?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

the PUT/GET should be similar as send, it does not really can be canceled, but need to complete it .

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