Please enable JavaScript.
Coggle requires JavaScript to display documents.
new IO poll - Coggle Diagram
new IO poll
ideas
poll request
request is completed by poll context
mark it as done in complete rq
io context is required
big issue
request can be freed directly from not poll context
bio_endio() is called before freeing request
poll hctx
big issue
how to make sure submissions is always completed from its own poll context
zombie hctx may stay in poll queue forever
one request submitted can be completed from another poll context
no such issue in bio poll becasue we always end bio in its own poll context
one invariant
any IO submitted from context, cookie is returned
poll(cookie) will be called if such io isn't completed
drawbacks of current way
cookie is required for polling one request
poll can't be used with IO splitting
can't support bio based polling