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>
Mon, 25 Jul 2022 00:39:11 +0000 (18:39 -0600)
commit97b388d70b53fd7d286ac1b81e5a88bd6af98209
tree551082b2ceecde75c2482fab1e22a5e03c40cd46
parentde23077eda61f549dbdadc4b6aa95f6e7b251552
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