diff options
author | Jens Axboe <axboe@kernel.dk> | 2024-10-15 20:19:33 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-10-29 20:43:28 +0100 |
commit | aaa736b186239b7dc7778ae94c75f26c96972796 (patch) | |
tree | 434b16ca0d6fb86cfb9a23428f6ce4cb403b8b7a /io_uring/io_uring.c | |
parent | io_uring/rsrc: move struct io_fixed_file to rsrc.h header (diff) | |
download | linux-aaa736b186239b7dc7778ae94c75f26c96972796.tar.xz linux-aaa736b186239b7dc7778ae94c75f26c96972796.zip |
io_uring: specify freeptr usage for SLAB_TYPESAFE_BY_RCU io_kiocb cache
Doesn't matter right now as there's still some bytes left for it, but
let's prepare for the io_kiocb potentially growing and add a specific
freeptr offset for it.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/io_uring.c')
-rw-r--r-- | io_uring/io_uring.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c index 2863b957e373..a09c67b38c1b 100644 --- a/io_uring/io_uring.c +++ b/io_uring/io_uring.c @@ -3846,6 +3846,8 @@ static int __init io_uring_init(void) struct kmem_cache_args kmem_args = { .useroffset = offsetof(struct io_kiocb, cmd.data), .usersize = sizeof_field(struct io_kiocb, cmd.data), + .freeptr_offset = offsetof(struct io_kiocb, work), + .use_freeptr_offset = true, }; #define __BUILD_BUG_VERIFY_OFFSET_SIZE(stype, eoffset, esize, ename) do { \ |