]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: move all prep state for IORING_OP_{SEND,RECV}_MGS to prep handler
authorJens Axboe <axboe@kernel.dk>
Fri, 20 Dec 2019 15:58:21 +0000 (08:58 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 20 Dec 2019 16:55:23 +0000 (09:55 -0700)
commit10d7aca1dc088794752bf5ba4655c712021e85a1
tree976b41eb9011740cdb96c277f02095eaf2dcdad5
parent4f92f2dcd5d0c930a068e44d2623c130fdf7b9b8
io_uring: move all prep state for IORING_OP_{SEND,RECV}_MGS to prep handler

Add struct io_sr_msg in our io_kiocb per-command union, and ensure that
the send/recvmsg prep handlers have grabbed what they need from the SQE
by the time prep is done.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c