summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2024-02-16 01:30:33 +0300
committerJens Axboe <axboe@kernel.dk>2024-02-16 01:37:28 +0300
commitb4ccc4dd1330a4d0db6aa4c6781631d1bab76c45 (patch)
tree9af256544b80381afafd99e2f5982da896148424 /samples
parent871760eb7af57accc5402142154e64f21701fa16 (diff)
downloadlinux-b4ccc4dd1330a4d0db6aa4c6781631d1bab76c45.tar.xz
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: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions