io_uring: add a helper for async rw iovec prep
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 13 Jul 2020 19:59:19 +0000 (22:59 +0300)
committerJens Axboe <axboe@kernel.dk>
Fri, 24 Jul 2020 18:55:44 +0000 (12:55 -0600)
commitc3e330a493740a2a8312dcb7b1cffceaec7f619a
tree70a6d9ed9bbe6d9b1e83c8173b3f23c8e5388c68
parentb64e3444d4e1c71fe148a4f4535395b1fdd73200
io_uring: add a helper for async rw iovec prep

Preparing reads/writes for async is a bit tricky. Extract a helper to
not repeat it twice.

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