]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: return iovec from __io_import_iovec
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 15 Oct 2021 16:09:14 +0000 (17:09 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 19 Oct 2021 11:49:56 +0000 (05:49 -0600)
commit6bde76a345c0fa8428799a2842af28c6f11e8535
tree0c62843649e25848da9e6e16e2654ce19b373750
parent7233c1c0e2f8a7a75aa5163f5a1e64cce2970144
io_uring: return iovec from __io_import_iovec

We pass iovec** into __io_import_iovec(), which should keep it,
initialise and modify accordingly. It's expensive, return it directly
from __io_import_iovec encoding errors with ERR_PTR if needed.

io_import_iovec keeps the old interface, but it's inline and so
everything is optimised nicely.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/6230e9769982f03a8f86fa58df24666088c44d3e.1634314022.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c