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>
Tue, 21 Sep 2021 18:09:06 +0000 (12:09 -0600)
commitfc0788fd67d9053330accd03822a501c6e3727e3
treec894d254424e64ad7e99b7caa9b9a9db2c244291
parentabd2cad7d0ba6ad9054acdf594068501b6ea77e4
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