Skip to content
Commit e1e16097 authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring: provide generic io_req_complete() helper



We have lots of callers of:

io_cqring_add_event(req, result);
io_put_req(req);

Provide a helper that does this for us. It helps clean up the code, and
also provides a more convenient location for us to change the completion
handling.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent d3cac64c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment