]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcad5617edc8d6044b4d3c0df860478936d159bed
treefb0228ea5486f2a171d5f285e4f1b0ac198cfdd9
parente781172b97ac85068991b06ce990b4f8496c6977
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