Re: [PATCH] fuse: select alternative io_uring queue if local queue is full

From: Bernd Schubert

Date: Wed Jul 15 2026 - 18:07:59 EST




On 7/15/26 19:51, Joanne Koong wrote:
> On Tue, Jul 14, 2026 at 12:33 AM Li Wang <liwang@xxxxxxxxxx> wrote:
>>
>> fuse_uring_task_to_queue() always maps requests to the queue for
>> task_cpu(current). A single-threaded submitter with high queue depth
>> could leave other per-CPU queues idle while one queue handles all
>> traffic.
>>
>> Prefer the local queue when it has available ring entries. If the local
>> queue is full, try other queues on the same NUMA node before falling
>> back to use the local queue.
>
> Hi Li,
>
> I think this is already covered by Bernd's changes in his reduced
> queues patchset [1].
>
> Thanks,
> Joanne
>
> [1] https://lore.kernel.org/fuse-devel/20260529-reduced-nr-ring-queues_3-v5-0-1dc08c2fccf6@xxxxxxxxxxx/

It is a slightly different approach, but both have the same goal
to get more balanced queue/core usage.

I will submit a new version once I'm back from vacation.


Thanks,
Bernd