Skip to content

POLL_ADD completion is sent after IORING_OP_POLL_REMOVE returned with 0 #653

Answered by axboe
romange asked this question in Q&A
Discussion options

You must be logged in to vote

You always get a completion for a canceled request, for both the cancelation request and the targeted request. That isn't new, it's always been like that. If the event to cancel is racing with the completion, you may get a valid return. You should get -EALREADY for the POLL_REMOVE in this case, and normal completion for the POLL_ADD.

Maybe I'm missing what you are really describing, so can you describe it in a bit more detail? Both in terms of expectations, but also in terms of what you're seeing that differs from that.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@romange
Comment options

@axboe
Comment options

Answer selected by axboe
Comment options

You must be logged in to vote
1 reply
@romange
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants