]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: wire send zc request type
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 12 Jul 2022 20:52:43 +0000 (21:52 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Jul 2022 00:41:07 +0000 (18:41 -0600)
commite5cb3948c047b8dad30a78d5355d866e22c6a54a
tree97726fb3e90715c2a4077834806f712a20826790
parent804742a49cd87083acce5deca270a80a51a92c0d
io_uring: wire send zc request type

Add a new io_uring opcode IORING_OP_SENDZC. The main distinction from
IORING_OP_SEND is that the user should specify a notification slot
index in sqe::notification_idx and the buffers are safe to reuse only
when the used notification is flushed and completes.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/a80387c6a68ce9cf99b3b6ef6f71068468761fb7.1657643355.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/uapi/linux/io_uring.h
io_uring/net.c
io_uring/net.h
io_uring/opdef.c