Re: [PATCH 3/3] io_uring/rw: don't retry dma-buf requests that fail with -EOPNOTSUPP

From: arsenova

Date: Fri Dec 04 2026 - 06:51:36 EST


On Friday, December 4th, 2026 at 3:43 PM, Anuj Gupta <anuj20.g@xxxxxxxxxxx> wrote:

> On Sun, Nov 29, 2026 at 06:34:03PM +0000, Yun Wang wrote:
> > Leave -EOPNOTSUPP alone for REQ_F_DMABUF requests. The flag is still set
> > after io_detach_dmabuf_map(), so io_complete_rw() can check it.
>
> Is it worth special-casing dma-buf in the core read/write paths? With
> patches 1 and 2, the retry is bounded, and this only avoids a retry on
> an error path.
>
> dma-buf I/O is still new and will gain more capabilities. If a future
> path returns -EOPNOTSUPP for a nonblocking attempt but can succeed in
> blocking context, we would need to revisit these checks.
>

Agreed. Patches 1 and 2 bound the retry, and the only other effect the
changelog mentions is the RWF_NOWAIT -EAGAIN case, which is minor. The
changelog also notes these checks would need another look as dma-buf
I/O grows, so it's premature to special-case dma-buf here for now. I'll
drop this patch from v2 and revisit it with the ext4 dma-buf series.

Best Regards,
Yun