Skip to content

io_uring_for_each_cqe +- io_uring_cq_advance #494

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

You must be logged in to vote

May need some extra comments but io_uring_for_each_cqe is not intended for waiting for CQEs but rather processing ones that are already there. And it's not possible to busy poll CQ for IOPOLL and anyway not recommended for non-IOPOLL.

One valid use case is to do io_uring_for_each_cqe after io_uring_wait_cqe_nr.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@jnorthrup
Comment options

@isilence
Comment options

@jnorthrup
Comment options

@isilence
Comment options

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