public inbox for [email protected]
 help / color / mirror / Atom feed
From: Ed Baunton <[email protected]>
To: Jens Axboe <[email protected]>
Cc: Josh Triplett <[email protected]>, [email protected]
Subject: Re: Multiple mmap/mprotect/munmap operations in a batch?
Date: Fri, 24 Apr 2020 14:21:20 -0400	[thread overview]
Message-ID: <CAF6hZUDW9zfLNuEP=CGiG7X0UAbQQJHjA3yO35A_xx9hNuxNuA@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>

Is there any restriction as to what calls shouldn't be covered with
io_uring? I see the scope is growing over time. For example would
directory operations be appropriate?

Ed

On Thu, 23 Apr 2020 at 11:13, Jens Axboe <[email protected]> wrote:
>
> On 4/23/20 2:19 AM, Josh Triplett wrote:
> > What would it take for io_uring to support mmap, mprotect, and munmap
> > operations?
>
> Not very much, wiring up something like madvise as an example:
>
> https://git.kernel.dk/cgit/linux-block/commit/?id=c1ca757bd6f4632c510714631ddcc2d13030fe1e
>
> > What would it take to process a batch of such operations efficiently
> > without repeatedly poking mmap_sem and such?
>
> Probably just a bit of refactoring, to enable calling the needed helpers
> with the mmap_sem already held.
>
> --
> Jens Axboe
>

      reply	other threads:[~2020-04-24 18:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-23  8:19 Multiple mmap/mprotect/munmap operations in a batch? Josh Triplett
2020-04-23 15:11 ` Jens Axboe
2020-04-24 18:21   ` Ed Baunton [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 \
    --in-reply-to='CAF6hZUDW9zfLNuEP=CGiG7X0UAbQQJHjA3yO35A_xx9hNuxNuA@mail.gmail.com' \
    [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