-
Are operations on same file descriptor implicitly serialized or not? For example, if I write and then read, should these ops be linked? I know there can be a partial write,so it is probably not a good practice in real life, but I am just trying to understand what io_uring offers. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Nothing is serialized unless you ask for it to be, doesn't matter if the ops touch the same or different files. Partial writes will be considered an error in terms of |
Beta Was this translation helpful? Give feedback.
-
I see. If fd is a TCP socket, partial write is expected behaviour, right? does it still break the chain? |
Beta Was this translation helpful? Give feedback.
-
As I wrote: "Partial writes will be considered an error in terms of IOSQE_IO_LINK, so it would break the chain.". |
Beta Was this translation helpful? Give feedback.
-
Just as Jens said for write requests. That also holds for all kinds of send requests (as well as recv) when you set |
Beta Was this translation helpful? Give feedback.
Nothing is serialized unless you ask for it to be, doesn't matter if the ops touch the same or different files.
Partial writes will be considered an error in terms of
IOSQE_IO_LINK
, so it would break the chain.