Skip to content

would love some help with io_uring_register_buffers_tags #1038

Answered by isilence
romange asked this question in Q&A
Discussion options

You must be logged in to vote

When you unregister a buffer (e.g. IORING_REGISTER_BUFFERS_UPDATE), it's not released immediately and might still be in use after the update reported success (syscall returns), and so you wouldn't know when it's safe to reuse the buffer. With tags io_uring will post a CQE when it has actually been released.
Tags are mainly there for registered buffers. They work for registered files, but they don't have such a problem.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@romange
Comment options

Answer selected by romange
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants