]> 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)
commitbf6fc4c1e7116bd3b6e97565e8fe6a4c70f3d737
treefb0228ea5486f2a171d5f285e4f1b0ac198cfdd9
parentb3876949afe1802283f5f8acc30a1362126613d7
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