io_uring: let io_setup_async_rw take care of iovec
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 4 Feb 2021 13:52:01 +0000 (13:52 +0000)
committerJens Axboe <axboe@kernel.dk>
Thu, 4 Feb 2021 15:05:46 +0000 (08:05 -0700)
commit6bf985dc50dd882a95fffa9c7eef0d1416f512e6
tree395df8a66dc5eed0f58e4d7095b3ad37bff15dc7
parent1a2cc0ce8d18c9e5592733cb6381e9ff5c23d916
io_uring: let io_setup_async_rw take care of iovec

Now we give out ownership of iovec into io_setup_async_rw(), so it
either sets request's context right or frees the iovec on error itself.
Makes our life a bit easier at call sites.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c