Skip to content

Full scope of "task work" and IORING_SETUP_DEFER_TASKRUN #993

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

You must be logged in to vote

and also the passage here seem to imply that "task work" is pushed back until io_uring_enter(2) is called with a GETEVENTS flag.

I have code that relies on io_uring_submit(ring); to clear the SQ so that io_uring_get_sqe() can succeed. Am I supposed to replace these calls with io_uring_submit_and_get_events(ring)? I tried playing around with a minimal example and the OP_TIMEOUT but it seemed like io_uring_submit() triggered work just fine and the only thing I noticed was a difference in when CQEs populated the CQ.

The flag doesn't affect submissions, so submit should try to consume all nr_submit SQEs and queue up requests regardless ...

When I use this flag, what actually gets delayed? …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
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