Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit b4ccc4dd authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring/napi: enable even with a timeout of 0


1 usec is not as short as it used to be, and it makes sense to allow 0
for a busy poll timeout - this means just do one loop to check if we
have anything available. Add a separate ->napi_enabled to check if napi
has been enabled or not.

While at it, move the writing of the ctx napi values after we've copied
the old values back to userspace. This ensures that if the call fails,
we'll be in the same state as we were before, rather than some
indeterminate state.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 871760eb
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