Skip to content

Commit

Permalink
io_uring: explicitly keep a CQE in io_kiocb
Browse files Browse the repository at this point in the history
We already have req->{result,user_data,cflags}, which mimic struct
io_uring_cqe and are intended to store CQE data. Combine them into a
struct io_uring_cqe field.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/e1efe65d5005cd6a9ec3440767eb15a9fa9351cf.1649771823.git.asml.silence@gmail.com
[axboe: add mirror cqe to cater to fd union]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
isilence authored and axboe committed Apr 17, 2022
1 parent f3ed4bf commit 5dedbb4
Showing 1 changed file with 69 additions and 65 deletions.

0 comments on commit 5dedbb4

Please sign in to comment.