• Jens Axboe's avatar
    io_uring: cache poll/double-poll state with a request flag · 91eac1c6
    Jens Axboe authored
    With commit "io_uring: cache req->apoll->events in req->cflags" applied,
    we now have just io_poll_remove_entries() dipping into req->apoll when
    it isn't strictly necessary.
    
    Mark poll and double-poll with a flag, so we know if we need to look
    at apoll->double_poll. This avoids pulling in those cachelines if we
    don't need them. The common case is that the poll wake handler already
    removed these entries while hot off the completion path.
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    91eac1c6
io_uring.c 294 KB