We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Here
iou/src/submission_queue.rs
Line 160 in 045f8d4
sq.khead
sqpoll
The text was updated successfully, but these errors were encountered:
Isn't that covered here by the acquire fence beforehand? Is it possible the actual variable access should use an atomic load?
Lines 158 to 160 in 045f8d4
Sorry, something went wrong.
@mxxo you can use fence, but then this should be written like:
let head: u32 = atomic_load_relaxed(sq.khead); fence(Acquire);
оr just use atomic_load_acquire(sq.head) and remove fence.
atomic_load_acquire(sq.head)
No branches or pull requests
Here
iou/src/submission_queue.rs
Line 160 in 045f8d4
sq.khead
is used which is fine ifsqpoll
is not enabled, but may lead to troubles if it is enabled.Should't this load be something like atomic_load(acquire) https://github.com/axboe/liburing/blob/3bdd9839005900440c7f74aafa476db48e6e9985/src/queue.c#L386 ?
If I'm wrong. I'm sorry.
The text was updated successfully, but these errors were encountered: