diff options
| author | Keith Busch <kbusch@kernel.org> | 2025-02-28 01:39:16 +0300 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2025-02-28 17:05:46 +0300 |
| commit | ed9f3112a8a8f6e6919d3b9da2651fa302df7be3 (patch) | |
| tree | 4d6c3d569625be201e5fb33a44d2f0fb9a224e95 /include | |
| parent | 1f6540e2aabb7372e68223a3669019589c3e30ad (diff) | |
| download | linux-ed9f3112a8a8f6e6919d3b9da2651fa302df7be3.tar.xz | |
io_uring: cache nodes and mapped buffers
Frequent alloc/free cycles on these is pretty costly. Use an io cache to
more efficiently reuse these buffers.
Signed-off-by: Keith Busch <kbusch@kernel.org>
Link: https://lore.kernel.org/r/20250227223916.143006-7-kbusch@meta.com
[axboe: fix imu leak]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/io_uring_types.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/io_uring_types.h b/include/linux/io_uring_types.h index 123e69368730..432c98ff52ee 100644 --- a/include/linux/io_uring_types.h +++ b/include/linux/io_uring_types.h @@ -292,6 +292,8 @@ struct io_ring_ctx { struct io_file_table file_table; struct io_rsrc_data buf_table; + struct io_alloc_cache node_cache; + struct io_alloc_cache imu_cache; struct io_submit_state submit_state; |
