io_uring: add infrastructure around io_uring_cmd_sqe issue type
authorJens Axboe <axboe@kernel.dk>
Wed, 17 Mar 2021 18:12:46 +0000 (12:12 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 12 Jul 2021 17:29:12 +0000 (11:29 -0600)
commit927dd9f4caa6914a774d26dc2ed922a26966a656
tree3febab77220cfa81e968dec1d6b609cabf2eed01
parente48962add6770d28aaaf9e2f8218173a238650f5
io_uring: add infrastructure around io_uring_cmd_sqe issue type

Define an io_uring_cmd_sqe struct that passthrough commands can use,
and define an array that has offset information for the two members
that we care about (user_data and personality). Then we can init the
two command types in basically the same way, just reading the user_data
and personality at the defined offsets for the command type.

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