io_uring: make io_alloc_ocqe() take a struct io_cqe pointer
authorJens Axboe <axboe@kernel.dk>
Fri, 16 May 2025 15:45:24 +0000 (09:45 -0600)
committerJens Axboe <axboe@kernel.dk>
Sun, 18 May 2025 00:46:53 +0000 (18:46 -0600)
commit072d37b52c914271319b9f7e596ff3cba02e249c
treeb923c10a23324a0ecc35ee2f258c41f6dedaeb05
parent10f466abc404443cb72ab3384f297345ac7415e1
io_uring: make io_alloc_ocqe() take a struct io_cqe pointer

The number of arguments to io_alloc_ocqe() is a bit unwieldy. Make it
take a struct io_cqe pointer rather than three separate CQE args. One
path already has that readily available, add an io_init_cqe() helper for
the remaining two.

Reviewed-by: Caleb Sander Mateos <csander@purestorage.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c