From: "Diangang Li" <lidiangang@bytedance.com>
To: "Pavel Begunkov" <asml.silence@gmail.com>, <axboe@kernel.dk>,
"Anuj Gupta" <anuj20.g@samsung.com>
Cc: <io-uring@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 2/2] io_uring/rw: honour RWF_NOWAIT when a dma-buf map is missing
Date: Fri, 4 Dec 2026 10:35:15 +0800 [thread overview]
Message-ID: <e2d9424d-37a3-4d31-85d9-141e93fb0504@bytedance.com> (raw)
In-Reply-To: <bd9b1fc4-a3ec-4b2c-b041-fe3acd9efdf7@gmail.com>
On 2026/12/3 23:07, Pavel Begunkov wrote:
> 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.
>
Hi Pavel,
No real use case yet, I just spotted this while reading the code and
writing some tests. We're looking at io_uring dma-buf for GDS-like
workloads, though we'd still need ext4 and nvme-rdma support before
using it for real.
So it was just a consistency fix. Happy to keep it as-is, fold in Anuj's
change for v2, or just drop this patch if you think it's not worth
bothering with.
Thanks,
Diangang
next prev parent reply other threads:[~2026-12-04 2:35 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
[not found] ` <CGME20261203082933epcas5p1bfb229c6feb82b6722133923a9ff3de0@epcas5p1.samsung.com>
2026-12-03 8:28 ` Anuj Gupta
2026-12-03 15:07 ` Pavel Begunkov
2026-12-04 2:35 ` Diangang Li [this message]
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=e2d9424d-37a3-4d31-85d9-141e93fb0504@bytedance.com \
--to=lidiangang@bytedance.com \
--cc=anuj20.g@samsung.com \
--cc=asml.silence@gmail.com \
--cc=axboe@kernel.dk \
--cc=io-uring@vger.kernel.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®