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>
Thu, 21 Jul 2022 14:33:55 +0000 (08:33 -0600)
commit1208b72e7901ec8ee4dd5126a1639fe7932be2c2
tree69c7d9881f703e4ff69e217401b767b639236ae7
parentc7e32b1e6dcefed613e944fa6ef107d24bd4bc72
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