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

From: Anuj Gupta

Date: Fri Dec 04 2026 - 02:43:34 EST


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.