io_uring: explicitly keep a CQE in io_kiocb
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 12 Apr 2022 14:09:43 +0000 (15:09 +0100)
committerJens Axboe <axboe@kernel.dk>
Sun, 24 Apr 2022 23:37:06 +0000 (17:37 -0600)
commitcef216fc32d7628206c523994e7e267e7a8dda59
treefb0228ea5486f2a171d5f285e4f1b0ac198cfdd9
parent8b3171bdf53c51c8edd609c3087932a24c42087f
io_uring: explicitly keep a CQE in io_kiocb

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>
fs/io_uring.c