]> git.ipfire.org Git - thirdparty/linux.git/commit
io_uring: add struct io_cold_def->sqe_copy() method
authorJens Axboe <axboe@kernel.dk>
Thu, 5 Jun 2025 17:33:52 +0000 (11:33 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 23 Jun 2025 14:59:13 +0000 (08:59 -0600)
commitaf19388a973877b2349df46c4487a789cd3148ed
tree5b5f77fdd6bf87818ff3d85fbdfcdba40f808ecb
parent4d811e395bbe54ba2febb3940d4b6c4741f360a6
io_uring: add struct io_cold_def->sqe_copy() method

Will be called by the core of io_uring, if inline issue is not going
to be tried for a request. Opcodes can define this handler to defer
copying of SQE data that should remain stable.

Only called if IO_URING_F_INLINE is set. If it isn't set, then there's a
bug in the core handling of this, and -EFAULT will be returned instead
to terminate the request. This will trigger a WARN_ON_ONCE(). Don't
expect this to ever trigger, and down the line this can be removed.

Reviewed-by: Caleb Sander Mateos <csander@purestorage.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/io_uring_types.h
io_uring/io_uring.c
io_uring/opdef.h