diff options
author | Jens Axboe <axboe@kernel.dk> | 2024-03-18 23:31:44 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-04-15 16:10:25 +0200 |
commit | d6f911a6b22f8e48aec82cd5f6b5a14dc76a56c3 (patch) | |
tree | fefd69b3b1a37166e74543f4d12f786ad7f26913 /io_uring/net.h | |
parent | io_uring/rw: cleanup retry path (diff) | |
download | linux-d6f911a6b22f8e48aec82cd5f6b5a14dc76a56c3.tar.xz linux-d6f911a6b22f8e48aec82cd5f6b5a14dc76a56c3.zip |
io_uring/rw: add iovec recycling
Let the io_async_rw hold on to the iovec and reuse it, rather than always
allocate and free them.
Also enables KASAN for the iovec entries, so that reuse can be detected
even while they are in the cache.
While doing so, shrink io_async_rw by getting rid of the bigger embedded
fast iovec. Since iovecs are being recycled now, shrink it from 8 to 1.
This reduces the io_async_rw size from 264 to 160 bytes, a 40% reduction.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/net.h')
0 files changed, 0 insertions, 0 deletions