io_uring: use more specific type in rcv/snd msg cp
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 12 Jul 2020 17:41:05 +0000 (20:41 +0300)
committerJens Axboe <axboe@kernel.dk>
Fri, 24 Jul 2020 18:55:44 +0000 (12:55 -0600)
commit1400e69705baf98d1c9cb73b592a3a68aab1d852
treea516104873a8ccbd16b3c31a5f086dc9a7a94052
parent270a5940700bb6cf9abf36ea10cf1fa0d453aa7a
io_uring: use more specific type in rcv/snd msg cp

send/recv msghdr initialisation works with struct io_async_msghdr, but
pulls the whole struct io_async_ctx for no reason. That complicates it
with composite accessing, e.g. io->msg.

Use and pass the most specific type, which is struct io_async_msghdr.
It is the larget field in union io_async_ctx and doesn't save stack
space, but looks clearer.
The most of the changes are replacing "io->msg." with "iomsg->"

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