Skip to content
Commit d8a6df10 authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring: use percpu counters to track inflight requests



Even though we place the req_issued and req_complete in separate
cachelines, there's considerable overhead in doing the atomics
particularly on the completion side.

Get rid of having the two counters, and just use a percpu_counter for
this. That's what it was made for, after all. This considerably
reduces the overhead in __io_free_req().

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 500a373d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment