Re: [PATCH] io_uring/wait: make check for pending io consider cached task references

From: Fiona Ebner

Date: Fri Oct 09 2026 - 07:52:56 EST


Hi Jens,

Am 28.04.26 um 11:52 AM schrieb Fiona Ebner:
> Am 27.04.26 um 7:17 PM schrieb Jens Axboe:
>> On 4/27/26 10:58 AM, Fiona Ebner wrote:
>>> The io_uring task's inflight count also includes the reservations for
>>> task references from io_task_refs_refill(), not just in-flight
>>> requests. Thus, pending requests are present if the inflight count is
>>> larger than the number of cached references.
>>>
>>> Co-developed-by: Thomas Lamprecht <t.lamprecht@xxxxxxxxxxx>
>>> Signed-off-by: Thomas Lamprecht <t.lamprecht@xxxxxxxxxxx>
>>> Signed-off-by: Fiona Ebner <f.ebner@xxxxxxxxxxx>
>>
>> Looks go to me! Just needs:
>>
>> Cc: stable@xxxxxxxxxxxxxxx
>> Fixes: 7b72d661f1f2 ("io_uring: gate iowait schedule on having pending requests")
>>
>> tags added, I will do that. Thanks for debugging this and sending a fix.
>>
>
> Thank you!

it seems like this change did not yet land in mainline kernels. Should I
resend with the added tags? Or is there some remaining issue with the
change?

Best Regards,
Fiona