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

fix prepare_sqes #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fix prepare_sqes #66

wants to merge 1 commit into from

Conversation

glommer
Copy link
Contributor

@glommer glommer commented Mar 19, 2021

This method takes a slice from the sqe queue, but that is completely
wrong: the sqe queue is a circular buffer, so if you try to get 2
elements at position n - 1 you access invalid memory.

This patch transforms the very helpful SQEs structure so that it now
only has the information needed to access each SQE and constructs them
from there.

This method takes a slice from the sqe queue, but that is completely
wrong: the sqe queue is a circular buffer, so if you try to get 2
elements at position n - 1 you access invalid memory.

This patch transforms the very helpful SQEs structure so that it now
only has the information needed to access each SQE and constructs them
from there.
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.

1 participant