]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: rw: delegate sync completions to core io_uring
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 16 Jun 2022 09:21:57 +0000 (10:21 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Jul 2022 00:39:13 +0000 (18:39 -0600)
commitf7537eb3e7d2672ff6d9845172d720049f8cf80a
tree6a3a52248aa8b8796ce3eba7665c88e15954aa34
parent399b7c8fe589b8b9a5d5c8aff6a4a1701cadc25f
io_uring: rw: delegate sync completions to core io_uring

io_issue_sqe() from the io_uring core knows how to complete requests
based on the returned error code, we can delegate io_read()/io_write()
completion to it. Make kiocb_done() to return the right completion
code and propagate it.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/32ef005b45d23bf6b5e6837740dc0331bb051bd4.1655371007.git.asml.silence@gmail.com
Reviewed-by: Hao Xu <howeyxu@tencent.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/rw.c