News for hackers. Stuff that matters.
Re:Lord of the io_uring: io_uring tutorial, examples and ref... by andoma on Sunday May 10, 2020 @05:23PM (#23136340)
io_uring requires userspace to access it using a well-defined load/store memory ordering. Care must be taken to make sure the compiler does not reorder instructions but also to use the correct load/store instructions so hardware doesn't reorder loads and stores. This is easier to (accidentally) get correct on x86 as it has stronger ordering guarantees. In other words, if you are not careful your code might be correct on x86 but fail on Arm, etc. Needless to say the library handles all of this correctly.

There are no comments on this comment yet.