Forum | Documentation | Website | Blog

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

io_uring/napi: ensure napi polling is aborted when work is available

While testing io_uring NAPI with DEFER_TASKRUN, I ran into slowdowns and
stalls in packet delivery. Turns out that while
io_napi_busy_loop_should_end() aborts appropriately on regular
task_work, it does not abort if we have local task_work pending.

Move io_has_work() into the private io_uring.h header, and gate whether
we should continue polling on that as well. This makes NAPI polling on
send/receive work as designed with IORING_SETUP_DEFER_TASKRUN as well.

Fixes: 8d0c12a8

 ("io-uring: add napi busy poll support")
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 3fb1764c
Branches
Tags
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