]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
io_uring/rsrc: refactor io_{un}account_mem() to take {user,mm}_struct param
authorDavid Wei <dw@davidwei.uk>
Tue, 4 Nov 2025 22:44:54 +0000 (14:44 -0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 6 Nov 2025 23:23:21 +0000 (16:23 -0700)
commit6ab39b392e7973ffc45bf7ab523d8777904c4128
tree944048b90bc137277a6207e3c9d11b91973dda7e
parent1fa7a34131110e3c41a13b19127da132dea32dcd
io_uring/rsrc: refactor io_{un}account_mem() to take {user,mm}_struct param

Refactor io_{un}account_mem() to take user_struct and mm_struct
directly, instead of accessing it from the ring ctx.

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/rsrc.c
io_uring/rsrc.h
io_uring/zcrx.c