Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 50cf5f38 authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring/msg_ring: add an alloc cache for io_kiocb entries


With slab accounting, allocating and freeing memory has considerable
overhead. Add a basic alloc cache for the io_kiocb allocations that
msg_ring needs to do. Unlike other caches, this one is used by the
sender, grabbing it from the remote ring. When the remote ring gets
the posted completion, it'll free it locally. Hence it is separately
locked, using ctx->msg_lock.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 0617bb50
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment