]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
io_uring/zcrx: add user_struct and mm_struct to io_zcrx_ifq
authorDavid Wei <dw@davidwei.uk>
Tue, 4 Nov 2025 22:44:56 +0000 (14:44 -0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 6 Nov 2025 23:23:21 +0000 (16:23 -0700)
commit5c686456a4e83ef06c74d40be05c21a0ef136684
tree8589bcaf024ffc1c19b63001293718464ac9980c
parentedd706ede85fc9a563556945069f87dbec769e07
io_uring/zcrx: add user_struct and mm_struct to io_zcrx_ifq

In preparation for removing ifq->ctx and making ifq lifetime independent
of ring ctx, add user_struct and mm_struct to io_zcrx_ifq.

In the ifq cleanup path, these are the only fields used from the main
ring ctx to do accounting. Taking a copy in the ifq allows ifq->ctx to
be removed later, including the ctx->refs held by the ifq.

Signed-off-by: David Wei <dw@davidwei.uk>
Reviewed-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/zcrx.c
io_uring/zcrx.h