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

relax sq.flags atomic read #282

Merged
merged 1 commit into from
Apr 30, 2024
Merged

Conversation

FrankReh
Copy link
Contributor

Change the atomic read of the SQ flags field to be relaxed.

Refer to discussions in #197 and in particular, as pointed out in #197, refer to the liburing library loads of this same field.

The liburing library names this field sq.kflags and all its atomic loads are performed with their IO_URING_READ_ONCE macro, which it defines to be the relaxed atomic load.

Change the atomic read of the SQ flags field to be `relaxed`.

Refer to discussions in tokio-rs#197 and in particular, as pointed out in tokio-rs#197,
refer to the liburing library loads of this same field.

The liburing library names this field sq.kflags and all its atomic loads
are performed with their IO_URING_READ_ONCE macro, which it defines
to be the `relaxed` atomic load.
@quininer quininer merged commit b29e815 into tokio-rs:master Apr 30, 2024
12 checks passed
@quininer
Copy link
Member

Thank you!

@FrankReh FrankReh deleted the sq_flags_load_relaxed branch April 30, 2024 15:40
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