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

io_uring: cache poll/double-poll state with a request flag



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>
parent 81459350
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment