What is the role of io_uring_sq.array, can someone explain it in detail? #598
Answered
by
axboe
uuuuu-diwu
asked this question in
Q&A
-
The tail and head in sq have already indexed sqe, why do we need to store the index in the array, and it is very strange that the subscript and value are the same when storing the array, can anyone help? |
Beta Was this translation helpful? Give feedback.
Answered by
axboe
Jun 15, 2022
Replies: 1 comment 5 replies
-
It's to enable submitting entries from the array of sqes out-of-order. This can be useful in some cases where the application IO unit embeds certain elements that require it to use the same entry every time, which is why it was done that way. |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
uuuuu-diwu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's to enable submitting entries from the array of sqes out-of-order. This can be useful in some cases where the application IO unit embeds certain elements that require it to use the same entry every time, which is why it was done that way.