summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2024-03-18 20:41:58 -0600
committerJens Axboe <axboe@kernel.dk>2024-04-15 08:10:25 -0600
commitd10f19dff56eac5ae44dc270336b18071a8bd51c (patch)
treeecc43b35af05671e2821eaeb455184791ab9efbf /include
parente2ea5a7069133c01fe3dbda95d77af7f193a1a52 (diff)
downloadlinux-stable-d10f19dff56eac5ae44dc270336b18071a8bd51c.tar.gz
linux-stable-d10f19dff56eac5ae44dc270336b18071a8bd51c.tar.bz2
linux-stable-d10f19dff56eac5ae44dc270336b18071a8bd51c.zip
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 'include')
-rw-r--r--include/linux/io_uring_types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/io_uring_types.h b/include/linux/io_uring_types.h
index 60d7e35fc303..0f24fdad19c2 100644
--- a/include/linux/io_uring_types.h
+++ b/include/linux/io_uring_types.h
@@ -301,6 +301,7 @@ struct io_ring_ctx {
struct io_alloc_cache apoll_cache;
struct io_alloc_cache netmsg_cache;
struct io_alloc_cache rw_cache;
+ struct io_alloc_cache uring_cache;
/*
* Any cancelable uring_cmd is added to this list in