All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pavel Begunkov <asml.silence@gmail.com>
To: Diangang Li <diangangli@gmail.com>, axboe@kernel.dk
Cc: io-uring@vger.kernel.org, linux-kernel@vger.kernel.org,
	Diangang Li <lidiangang@bytedance.com>
Subject: Re: [PATCH 2/2] io_uring/rw: honour RWF_NOWAIT when a dma-buf map is missing
Date: Thu, 3 Dec 2026 15:07:28 +0000	[thread overview]
Message-ID: <bd9b1fc4-a3ec-4b2c-b041-fe3acd9efdf7@gmail.com> (raw)
In-Reply-To: <20261130072837.4191677-2-diangangli@gmail.com>

On 11/30/26 07:28, Diangang Li wrote:
> From: Diangang Li <lidiangang@bytedance.com>
> 
> On nonblocking issue, io_attach_dmabuf_map() returns -EAGAIN if no map is
> available. This happens before io_rw_init_file() sets REQ_F_NOWAIT, so
> an RWF_NOWAIT request is punted to io-wq and can block instead of
> completing with -EAGAIN.
> 
> Set REQ_F_NOWAIT on this path to prevent the retry. Requests issued
> directly from io-wq can still create the map in blocking mode.

I'm curious, are you using it for something with nowait? Async with
nowait is a bit of a debatable topic, so I was wondering what's the
use case.

-- 
Pavel Begunkov


  parent reply	other threads:[~2026-12-03 15:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30  7:28 [PATCH 1/2] io_uring/dma-buf: release the I/O context before the target file Diangang Li
2026-11-30  7:28 ` [PATCH 2/2] io_uring/rw: honour RWF_NOWAIT when a dma-buf map is missing Diangang Li
2026-12-03  8:28   ` Anuj Gupta
2026-12-03 15:07   ` Pavel Begunkov [this message]
2026-12-04  2:35     ` Diangang Li
2026-12-03 12:10 ` [PATCH 1/2] io_uring/dma-buf: release the I/O context before the target file Pavel Begunkov
2026-12-03 12:53 ` Anuj gupta

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bd9b1fc4-a3ec-4b2c-b041-fe3acd9efdf7@gmail.com \
    --to=asml.silence@gmail.com \
    --cc=axboe@kernel.dk \
    --cc=diangangli@gmail.com \
    --cc=io-uring@vger.kernel.org \
    --cc=lidiangang@bytedance.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.