Skip to content

Commit

Permalink
io_uring: add support for sqe links
Browse files Browse the repository at this point in the history
With SQE links, we can create chains of dependent SQEs. One example
would be queueing an SQE that's a read from one file descriptor, with
the linked SQE being a write to another with the same set of buffers.

An SQE link will not stall the pipeline, it'll just ensure that
dependent SQEs aren't issued before the previous link has completed.

Any error at submission or completion time will break the chain of SQEs.
For completions, this also includes short reads or writes, as the next
SQE could depend on the previous one being fully completed.

Any SQE in a chain that gets canceled due to any of the above errors,
will get an CQE fill with -ECANCELED as the error value.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
Jens Axboe committed Jun 24, 2019
1 parent 9d93a3f commit 9e645e1
Show file tree
Hide file tree
Showing 2 changed files with 194 additions and 48 deletions.
Loading

0 comments on commit 9e645e1

Please sign in to comment.