io_uring: handle completions in the core
authorJens Axboe <axboe@kernel.dk>
Tue, 24 May 2022 21:21:00 +0000 (15:21 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 21 Jul 2022 14:34:06 +0000 (08:34 -0600)
commit0245ca65ee1264b931de78c4db89a3f9e09aabc3
tree7a65f53ebd9b86cf1639e5bd26adafa2928e9043
parentdda7decff9413b5a6e628a1f8a11b7d527428423
io_uring: handle completions in the core

Normally request handlers complete requests themselves, if they don't
return an error. For the latter case, the core will complete it for
them.

This is unhandy for pushing opcode handlers further out, as we don't
want a bunch of inline completion code and we don't want to make the
completion path slower than it is now.

Let the core handle any completion, unless the handler explicitly
asks us not to.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c
io_uring/io_uring.h