io_uring: add support for recvmsg() io_uring-next
authorJens Axboe <axboe@kernel.dk>
Fri, 19 Apr 2019 19:38:09 +0000 (13:38 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 24 Jun 2019 14:03:18 +0000 (08:03 -0600)
commitd0b12672366d88aa0cac1629cade9c32097004ef
tree85963ae2cf72deda9bea41efd9492c94e9344b8b
parent9d4aa572f70a17da2949394d33cd2a9fa3d4787c
io_uring: add support for recvmsg()

This is done through IORING_OP_RECVMSG. This opcode uses the same
sqe->msg_flags that IORING_OP_SENDMSG added, and we pass in the
msghdr struct in the sqe->addr field as well.

We use MSG_DONTWAIT to force an inline fast path if recvmsg() doesn't
block, and punt to async execution if it would have.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c
include/linux/socket.h
include/uapi/linux/io_uring.h
net/socket.c