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>
Wed, 22 Jun 2022 17:28:18 +0000 (11:28 -0600)
commitbe0c44be46982bee3e8143fd5e82f8f060a6be14
treea46f70b6894de932307848b8a7a4951704e13a72
parent460ef55aabf88c4b3647fda1eff6bdcb80d39eea
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