public inbox for [email protected]
 help / color / mirror / Atom feed
From: Jens Axboe <[email protected]>
To: Pavel Begunkov <[email protected]>, [email protected]
Subject: Re: [PATCH 1/1] io_uring: allow empty slots for reg buffers
Date: Wed, 28 Apr 2021 08:06:04 -0600	[thread overview]
Message-ID: <[email protected]> (raw)
In-Reply-To: <7e95e4d700082baaf010c648c72ac764c9cc8826.1619611868.git.asml.silence@gmail.com>

On 4/28/21 6:11 AM, Pavel Begunkov wrote:
> Allow empty reg buffer slots any request using which should fail. This
> allows users to not register all buffers in advance, but do it lazily
> and/or on demand via updates. That is achieved by setting iov_base and
> iov_len to zero for registration and/or buffer updates. Empty buffer
> can't have a non-zero tag.
> 
> Implementation details: to not add extra overhead to io_import_fixed(),
> create a dummy buffer crafted to fail any request using it, and set it
> to all empty buffer slots.

Applied, thanks.

-- 
Jens Axboe


      reply	other threads:[~2021-04-28 14:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-28 12:11 [PATCH 1/1] io_uring: allow empty slots for reg buffers Pavel Begunkov
2021-04-28 14:06 ` Jens Axboe [this message]

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 \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    /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