summaryrefslogtreecommitdiffstats
path: root/io_uring/opdef.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2024-10-28 15:03:04 +0100
committerJens Axboe <axboe@kernel.dk>2024-10-29 20:43:28 +0100
commit743fb58a35cde8fe27b07ee5a985ae76563845e3 (patch)
tree2ccab09cd828f80231b3ada177a83a53ff2cc367 /io_uring/opdef.c
parentio_uring: specify freeptr usage for SLAB_TYPESAFE_BY_RCU io_kiocb cache (diff)
downloadlinux-743fb58a35cde8fe27b07ee5a985ae76563845e3.tar.xz
linux-743fb58a35cde8fe27b07ee5a985ae76563845e3.zip
io_uring/splice: open code 2nd direct file assignment
In preparation for not pinning the whole registered file table, open code the second potential direct file assignment. This will be handled by appropriate helpers in the future, for now just do it manually. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/opdef.c')
-rw-r--r--io_uring/opdef.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/io_uring/opdef.c b/io_uring/opdef.c
index a2be3bbca5ff..3de75eca1c92 100644
--- a/io_uring/opdef.c
+++ b/io_uring/opdef.c
@@ -641,6 +641,7 @@ const struct io_cold_def io_cold_defs[] = {
},
[IORING_OP_SPLICE] = {
.name = "SPLICE",
+ .cleanup = io_splice_cleanup,
},
[IORING_OP_PROVIDE_BUFFERS] = {
.name = "PROVIDE_BUFFERS",
@@ -650,6 +651,7 @@ const struct io_cold_def io_cold_defs[] = {
},
[IORING_OP_TEE] = {
.name = "TEE",
+ .cleanup = io_splice_cleanup,
},
[IORING_OP_SHUTDOWN] = {
.name = "SHUTDOWN",