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

io_uring: handle INTR error from write #119

Merged
merged 1 commit into from
Sep 23, 2024
Merged

Conversation

rockorager
Copy link
Contributor

It is possible to get an EINTR error from io_uring when copying cqes.
xev already handles EINTR automatically when it occurs during
io_uring_enter, but doesn't handle it if an individual cqe copy has this
error.

Add error.SignalInterrupt to the WriteError enum so that callers may
rearm their writes when encountering this error, if they desire.

src/backend/io_uring.zig Outdated Show resolved Hide resolved
It is possible to get an EINTR error from io_uring when copying cqes.
xev already handles EINTR automatically when it occurs during
io_uring_enter, but doesn't handle it if an individual cqe copy has this
error.

Automatically rearm the completion when the result is EINTR.
@mitchellh mitchellh merged commit b8d1d93 into mitchellh:main Sep 23, 2024
1 of 2 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