summaryrefslogtreecommitdiff
path: root/io_uring/opdef.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2024-03-19 05:41:58 +0300
committerJens Axboe <axboe@kernel.dk>2024-04-15 17:10:25 +0300
commitd10f19dff56eac5ae44dc270336b18071a8bd51c (patch)
treeecc43b35af05671e2821eaeb455184791ab9efbf /io_uring/opdef.c
parente2ea5a7069133c01fe3dbda95d77af7f193a1a52 (diff)
downloadlinux-d10f19dff56eac5ae44dc270336b18071a8bd51c.tar.xz
io_uring/uring_cmd: switch to always allocating async data
Basic conversion ensuring async_data is allocated off the prep path. Adds a basic alloc cache as well, as passthrough IO can be quite high in rate. Tested-by: Anuj Gupta <anuj20.g@samsung.com> Reviewed-by: Anuj Gupta <anuj20.g@samsung.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/opdef.c')
-rw-r--r--io_uring/opdef.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/io_uring/opdef.c b/io_uring/opdef.c
index 1951107210d4..745246086c23 100644
--- a/io_uring/opdef.c
+++ b/io_uring/opdef.c
@@ -677,7 +677,6 @@ const struct io_cold_def io_cold_defs[] = {
[IORING_OP_URING_CMD] = {
.name = "URING_CMD",
.async_size = 2 * sizeof(struct io_uring_sqe),
- .prep_async = io_uring_cmd_prep_async,
},
[IORING_OP_SEND_ZC] = {
.name = "SEND_ZC",