• Jens Axboe's avatar
    io_uring: improve poll completion performance · e94f141b
    Jens Axboe authored
    For busy IORING_OP_POLL_ADD workloads, we can have enough contention
    on the completion lock that we fail the inline completion path quite
    often as we fail the trylock on that lock. Add a list for deferred
    completions that we can use in that case. This helps reduce the number
    of async offloads we have to do, as if we get multiple completions in
    a row, we'll piggy back on to the poll_llist instead of having to queue
    our own offload.
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    e94f141b
io_uring.c 147 KB