Re: [PATCH v2] io_uring/napi: don't end the single NAPI busy poll early on need_resched()

From: Jens Axboe

Date: Mon Nov 09 2026 - 16:50:10 EST



On Tue, 27 Oct 2026 21:48:40 +0100, Cinq Prairie wrote:
> With a single registered NAPI, io_napi_blocking_busy_loop() hands
> io_napi_busy_loop_should_end() to napi_busy_loop_rcu() as loop_end and
> runs its own loop once, relying on __napi_busy_loop() to spin until
> that predicate fires. napi_busy_loop_rcu() sets NAPI_F_END_ON_RESCHED,
> so __napi_busy_loop() also returns on the first need_resched(). io_uring
> treats the return as the end of the busy poll period and sleeps in
> schedule_hrtimeout() for the rest of the wait timeout.
>
> [...]

Applied, thanks!

[1/1] io_uring/napi: don't end the single NAPI busy poll early on need_resched()
commit: 39c7210e970200f8b17de3767c73efe64173a95f

Best regards,
--
Jens Axboe