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

prov/tcp: Only disable ep if the failure can not be retried #10779

Merged
merged 1 commit into from
Feb 12, 2025

Conversation

wangdi1
Copy link
Contributor

@wangdi1 wangdi1 commented Feb 10, 2025

Only disable ep if the failure can not be retried.

@wangdi1
Copy link
Contributor Author

wangdi1 commented Feb 10, 2025

@shefty are you ok with the patch? We saw some failures on our site

"ofi_bsock_async_done() Error reading MSG_ERRQUEUE (Resource temporarily unavailable)"

If this means EAGAIN, then ep should not be disabled?

Copy link
Member

@shefty shefty left a comment

Choose a reason for hiding this comment

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

Please move the check into ofi_bsock_async_done() after recvmsg(). This should have been trapped there and the error discarded (no warning message).

@wangdi1
Copy link
Contributor Author

wangdi1 commented Feb 10, 2025

Please move the check into ofi_bsock_async_done() after recvmsg(). This should have been trapped there and the error discarded (no warning message).

ah, sure. thanks! @shefty

src/common.c Outdated
@@ -1421,6 +1421,9 @@ int ofi_bsock_async_done(const struct fi_provider *prov,
msg.msg_controllen = sizeof(ctrl);
ret = recvmsg(bsock->sock, &msg, MSG_ERRQUEUE);
if (ret < 0) {
if (OFI_SOCK_TRY_SND_RCV_AGAIN(ret))
Copy link
Member

Choose a reason for hiding this comment

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

This is a direct call to recvmsg, so you want to use errno instead of ret. This ends up being linux specific code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah, yes. Thanks!

@wangdi1 wangdi1 requested a review from shefty February 10, 2025 21:29
@shefty
Copy link
Member

shefty commented Feb 10, 2025

Final changes look okay, but please squash the commits

Only disable ep if the failure can not be retried.

Signed-off-by: Di Wang <ddiwang@google.com>
@wangdi1
Copy link
Contributor Author

wangdi1 commented Feb 11, 2025

Final changes look okay, but please squash the commits

sure. thanks

Copy link
Member

@shefty shefty left a comment

Choose a reason for hiding this comment

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

looks good -- thanks

@shefty shefty changed the title Only disable ep if the failure can not be retried prov/tcp: Only disable ep if the failure can not be retried Feb 12, 2025
@j-xiong j-xiong merged commit 3b7cde4 into ofiwg:main Feb 12, 2025
13 checks passed
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