diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2022-06-15 19:33:53 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-07-25 03:39:13 +0300 |
commit | 6a02e4be8187588ac476136496af9e3feeeb9a75 (patch) | |
tree | 306c269202b6f6c9f529da048387241b6c0d00b9 /io_uring/tctx.h | |
parent | 48c13d8980840e489a537e4af4b2503eb9d8a1ec (diff) | |
download | linux-6a02e4be8187588ac476136496af9e3feeeb9a75.tar.xz |
io_uring: inline ->registered_rings
There can be only 16 registered rings, no need to allocate an array for
them separately but store it in tctx.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/495f0b953c87994dd9e13de2134019054fa5830d.1655310733.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/tctx.h')
-rw-r--r-- | io_uring/tctx.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/io_uring/tctx.h b/io_uring/tctx.h index f4964e40d07e..7684713e950f 100644 --- a/io_uring/tctx.h +++ b/io_uring/tctx.h @@ -20,8 +20,9 @@ struct io_uring_task { struct io_wq_work_list task_list; struct io_wq_work_list prio_task_list; struct callback_head task_work; - struct file **registered_rings; bool task_running; + + struct file *registered_rings[IO_RINGFD_REG_MAX]; }; struct io_tctx_node { |