io_uring: add generic command payload type to struct io_kiocb
authorJens Axboe <axboe@kernel.dk>
Tue, 24 May 2022 14:32:05 +0000 (08:32 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 22 Jun 2022 17:06:07 +0000 (11:06 -0600)
commitb703fefc06fac86f85fbf5dd4633ad7671e9d483
treef9968b3f7ee530b72165f7aae30e1986613c0804
parent0bbf9e00d07bac99b8c5fcede9e5a0bb40a3f1e1
io_uring: add generic command payload type to struct io_kiocb

Each opcode generally has a command structure in io_kiocb which it can
use to store data associated with that request.

In preparation for having the core layer not know about what's inside
these fields, add a generic io_cmd_data type and put in the union as
well.

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