On 7/30/24 16:33, Pavel Begunkov wrote:
While on the topic of busy polling, there is a function io_napi_adjust_timeout(), it ensures that we don't busy poll for longer than the passed wait timeout. Do you use it? I have some doubts in regards to its usefulness, and would prefer to try get rid of it if there are no users since it's a hustle.
And I need to ask Lewis (CC'ed) the same question (see above). Looking at commit 415ce0ea55c5a3afea501a773e002be9ed7149f5 Author: Jens Axboe <axboe@xxxxxxxxx> Date: Mon Jun 3 13:56:53 2024 -0600 io_uring/napi: fix timeout calculation https://git.kernel.dk/cgit/linux-block/commit/?id=415ce0ea55c5a3afea501a773e002be9ed7149f5 It sounds like you might be using it. -- Pavel Begunkov