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>
Thu, 25 Mar 2021 17:22:19 +0000 (11:22 -0600)
commit076cf5088d739562a7a5d5ee02089aad9890cfcf
tree1b082d6522f8656a2a8517836ce3e2a67ced13d6
parent150843fc50d7c7c7baf0f1c36b22c36ea3e1f975
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