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

io_uring/rsrc: improve code generation for fixed file assignment


For the normal read/write path, we have already locked the ring
submission side when assigning the file. This causes branch
mispredictions when we then check and try and lock again in
io_req_set_rsrc_node(). As this is a very hot path, this matters.

Add a basic helper that already assumes we already have it locked,
and use that in io_file_get_fixed().

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