]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
io_uring/napi: cap busy_poll_to 10 msec
authorJens Axboe <axboe@kernel.dk>
Mon, 27 Apr 2026 20:42:18 +0000 (14:42 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 28 Apr 2026 22:09:02 +0000 (16:09 -0600)
commitdf8599ee18c0e5fe343ffe0b4c379636b8bb839a
tree4d55ed7ab1953e7bdc098c166e38d627e22a29c2
parent7deba791ad495ce1d7921683f4f7d1190fa210d1
io_uring/napi: cap busy_poll_to 10 msec

Currently there's no cap on the maximum amount of time that napi is
allowed to poll if no events are found, which can lead to kernel
complaints on a task being stuck as there's no conditional rescheduling
done within that loop.

Just cap it to 10 msec in total, that's already way above any kind of
sane value that will reap any benefits, yet low enough that it's
nowhere near being able to trigger preemption complaints.

Fixes: 8d0c12a80cde ("io-uring: add napi busy poll support")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/napi.c