]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfe668d8fbda214e11cc0dbdad09df402215fa7fd
tree551082b2ceecde75c2482fab1e22a5e03c40cd46
parenta6cab85a78342c82432f20b2de47bf82f8ceed28
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