On Wed, 20 Nov 2024 14:14:50 -0800, David Wei wrote: > Currently when running local tw it will eagerly try and complete all > available work. When there is a burst of work coming in, the list of > work in work_llist may be much larger than the requested batch count > wait_nr. Doing all of the work eagerly may cause latency issues for some > applications that do not want to spend so much time in the kernel. > > Limit the amount of local tw done to the max of 20 (a heuristic) or > wait_nr. This then does not require any userspace changes. > > [...] Applied, thanks! [1/2] io_uring: add io_local_work_pending() commit: 40cfe553240b32333b42652370ef5232e6ac59e1 [2/2] io_uring: limit local tw done commit: f46b9cdb22f7a167c36b6bcddaef7e8aee2598fa Best regards, -- Jens Axboe