Skip to content
Commit 3347fa65 authored by Jens Axboe's avatar Jens Axboe Committed by David Sterba
Browse files

io_uring/cmd: add per-op data to struct io_uring_cmd_data



In case an op handler for ->uring_cmd() needs stable storage for user
data, it can allocate io_uring_cmd_data->op_data and use it for the
duration of the request. When the request gets cleaned up, uring_cmd
will free it automatically.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent dadf03cf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment