Skip to content
Discussion options

You must be logged in to vote

It's sync in the sense of "guarantees that a completion has been posted by the time io_uring_submit() (or any other submit variant) returns". The result delivery is just using the CQ ring, like any completion does, but after submit you'll know that the request has completed - either successfully, as expected, or with -EAGAIN if it could not complete synchronously. And yes that would mean you need some kind of iteration of the CQ ring to find these completion post submit, which isn't necessarily trivial or pretty, depending on what your flow normally looks like.

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@TwoClocks
Comment options

@axboe
Comment options

Answer selected by TwoClocks
@TwoClocks
Comment options

@axboe
Comment options

@TwoClocks
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants