]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
io_uring/zctx: separate notification user_data
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 16 Feb 2026 11:48:52 +0000 (11:48 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 9 Mar 2026 13:23:29 +0000 (07:23 -0600)
commitcb9487333652b2cfb4f10ef596fc5b675241cae9
treeda120aac6fdbf344a6e29822cb2d185aeb179350
parentdce00c83035b880deebf7b2f0a204f740cb90d64
io_uring/zctx: separate notification user_data

People previously asked for the notification CQE to have a different
user_data value from the main request completion. It's useful to
separate buffer and request handling logic and avoid separately
refcounting the request.

Let the user pass the notification user_data in sqe->addr3. If zero,
it'll inherit sqe->user_data as before. It doesn't change the rules for
when the user can expect a notification CQE, and it should still check
the IORING_CQE_F_MORE flag.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/net.c