io_uring: extract kmsg copy helper
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 28 Feb 2020 07:36:36 +0000 (10:36 +0300)
committerJens Axboe <axboe@kernel.dk>
Mon, 2 Mar 2020 21:04:41 +0000 (14:04 -0700)
commit02d27d895323c4baa3234e4bed015eb3a196e1dd
tree708399c01c839d23f069ffbf71c0a18274f1c742
parentb0a20349f212dc725f5ddfd060e426fe6181d9c5
io_uring: extract kmsg copy helper

io_recvmsg() and io_sendmsg() duplicate nonblock -EAGAIN finilising
part, so add helper for that.

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