Skip to content

io_uring_prep_sendmsg (readv/writev) atomicity guarantees #1357

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

You must be logged in to vote

If the file provides no atomicity guarantees, there can be no atomicity with io_uring requests.

If that's about ordering the execution of io_uring requests, there has already been a couple of threads answering in more details, but in short, request can be executed in any order and they can even be executed in halfs. So, totally possible that one request pushes its first half of data, then another request gets executed, and only then the first requests completes. Userspace must order requests in userspace.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by gmelikov
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