commit | d8a6df10aac9f2e4d5f30aff3129d552d2984ce7 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Thu Oct 15 16:24:45 2020 -0600 |
committer | Jens Axboe <axboe@kernel.dk> | Sat Oct 17 09:25:47 2020 -0600 |
tree | c254a63bd2029e29853e1f28568bfc06e4e41b2d | |
parent | 500a373d731ac506612db12631ec21295c1ff360 [diff] |
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: Jens Axboe <axboe@kernel.dk>