From: Mike Rapoport <rppt@linux.vnet.ibm.com>
To: Blake Caldwell <caldweba@colorado.edu>
Cc: 'Pavel Emelyanov' <xemul@virtuozzo.com>,
'linux-mm' <linux-mm@kvack.org>,
'Andrea Arcangeli' <aarcange@redhat.com>
Subject: Re: [RFC PATCH 0/5] userfaultfd: non-cooperative: syncronous events
Date: Mon, 14 Aug 2017 07:58:03 +0300 [thread overview]
Message-ID: <20170814045802.GA18287@rapoport-lnx> (raw)
In-Reply-To: <011e01d312a8$3c97e6b0$b5c7b410$@colorado.edu>
Hi,
On Fri, Aug 11, 2017 at 09:46:29AM -0400, Blake Caldwell wrote:
> > On Tue, May 16, 2017 at 01:35:57PM +0300, Mike Rapoport wrote:
> > > Hi,
> >
> > Any comments on this?
> > Shall I repost without the "RFC" prefix?
> >
> I have a use case for this feature exactly like what you have described. The
> process should be suspended until the event has been handled. I would like
> to test this if there is a rebased patchset out there somewhere? I'm using
> 4.13.0_rc3 from
> https://kernel.googlesource.com/pub/scm/linux/kernel/git/andrea/aa.git
>
> I wasn't able to apply the patches without heavy modification (mostly patch
> 3/5).
I don't have a version rebased on Andrea's tree, sorry.
> Thanks for the work on this.
> > > These patches add ability to generate userfaultfd events so that thier
> > > processing will be synchronized with the non-cooperative thread that
> > > caused the event.
> > >
> > > In the non-cooperative case userfaultfd resumes execution of the
> > > thread that caused an event when the notification is read() by the uffd
> > monitor.
> > > In some cases, like, for example, madvise(MADV_REMOVE), it might be
> > > desirable to keep the thread that caused the event suspended until the
> > > uffd monitor had the event handled.
> > >
> > > The first two patches just shuffle the code a bit to make subsequent
> > > changes easier.
> > > The patches 3 and 4 create some unification in the way the threads are
> > > queued into waitqueues either after page fault or after a
> > > non-cooperative event.
> > > The fifth patch extends the userfaultfd API with an implementation of
> > > UFFD_EVENT_REMOVE_SYNC that allows to keep the thread that triggered
> > > UFFD_EVENT_REMOVE until the uffd monitor would not wake it explicitly.
> > >
> > > Mike Rapoport (5):
> > > userfaultfd: introduce userfault_init_waitqueue helper
> > > userfaultfd: introduce userfaultfd_should_wait helper
> > > userfaultfd: non-cooperative: generalize wake key structure
> > > userfaultfd: non-cooperative: use fault_pending_wqh for all events
> > > userfaultfd: non-cooperative: allow synchronous EVENT_REMOVE
> > >
> > > fs/userfaultfd.c | 205
> ++++++++++++++++++++++++---------------
> > > include/uapi/linux/userfaultfd.h | 11 +++
> > > 2 files changed, 136 insertions(+), 80 deletions(-)
> > >
> > > --
> > > 2.7.4
> > >
> >
> > --
> > To unsubscribe, send a message with 'unsubscribe linux-mm' in
> > the body to majordomo@kvack.org. For more info on Linux MM,
> > see: http://www.linux-mm.org/ .
> > Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
>
--
Sincerely yours,
Mike.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
prev parent reply other threads:[~2017-08-14 4:58 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-16 10:35 [RFC PATCH 0/5] userfaultfd: non-cooperative: syncronous events Mike Rapoport
2017-05-16 10:35 ` [RFC PATCH 1/5] userfaultfd: introduce userfault_init_waitqueue helper Mike Rapoport
2017-05-16 10:35 ` [RFC PATCH 2/5] userfaultfd: introduce userfaultfd_should_wait helper Mike Rapoport
2017-05-16 10:36 ` [RFC PATCH 3/5] userfaultfd: non-cooperative: generalize wake key structure Mike Rapoport
2017-05-16 10:36 ` [RFC PATCH 4/5] userfaultfd: non-cooperative: use fault_pending_wqh for all events Mike Rapoport
2017-05-16 10:36 ` [RFC PATCH 5/5] userfaultfd: non-cooperative: allow synchronous EVENT_REMOVE Mike Rapoport
2017-06-27 13:39 ` [RFC PATCH 0/5] userfaultfd: non-cooperative: syncronous events Mike Rapoport
2017-08-11 13:46 ` Blake Caldwell
2017-08-14 4:58 ` Mike Rapoport [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=20170814045802.GA18287@rapoport-lnx \
--to=rppt@linux.vnet.ibm.com \
--cc=aarcange@redhat.com \
--cc=caldweba@colorado.edu \
--cc=linux-mm@kvack.org \
--cc=xemul@virtuozzo.com \
/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;
as well as URLs for NNTP newsgroup(s).