io_uring: add support for sendmsg()
authorJens Axboe <axboe@kernel.dk>
Fri, 19 Apr 2019 19:34:07 +0000 (13:34 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 24 Jun 2019 14:02:30 +0000 (08:02 -0600)
commit9d4aa572f70a17da2949394d33cd2a9fa3d4787c
tree50924290ab944d1a68dcacb69c04d100c6d3049b
parent9e645e1105ca60fbbc6bddf2fd5ef7e57ed3dca8
io_uring: add support for sendmsg()

This is done through IORING_OP_SENDMSG. There's a new sqe->msg_flags
for the flags argument, and the msghdr struct is passed in the
sqe->addr field.

We use MSG_DONTWAIT to force an inline fast path if sendmsg() 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