linux-api.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/3] userfaultfd: non-cooperative: syncronous events
@ 2017-10-25 16:23 Mike Rapoport
  2017-10-25 16:23 ` [RFC PATCH 1/3] userfaultfd: introduce userfaultfd_init_waitqueue helper Mike Rapoport
       [not found] ` <1508948617-22505-1-git-send-email-rppt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
  0 siblings, 2 replies; 5+ messages in thread
From: Mike Rapoport @ 2017-10-25 16:23 UTC (permalink / raw)
  To: Andrea Arcangeli
  Cc: Dr. David Alan Gilbert, Pavel Emelyanov, Mike Kravetz,
	Andrew Morton, linux-mm, linux-api, Mike Rapoport

Hi,

These patches add ability to generate userfaultfd events so that their
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.

Theses patches extend 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 (3):
  userfaultfd: introduce userfaultfd_init_waitqueue helper
  userfaultfd: non-cooperative: generalize wake key structure
  userfaultfd: non-cooperative: allow synchronous EVENT_REMOVE

 fs/userfaultfd.c                 | 158 ++++++++++++++++++++++++++++-----------
 include/uapi/linux/userfaultfd.h |  11 +++
 2 files changed, 124 insertions(+), 45 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>

^ permalink raw reply	[flat|nested] 5+ messages in thread
* [RFC PATCH 0/3] userfaultfd: non-cooperative: syncronous events
@ 2017-10-25 16:19 Mike Rapoport
  0 siblings, 0 replies; 5+ messages in thread
From: Mike Rapoport @ 2017-10-25 16:19 UTC (permalink / raw)
  To: Andrea Arcangeli
  Cc: Dr. David Alan Gilbert, Pavel Emelyanov, Mike Kravetz,
	Andrew Morton, linux-mm, linux-api, Mike Rapoport

Hi,

These patches add ability to generate userfaultfd events so that their
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.

Theses patches extend 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 (3):
  userfaultfd: introduce userfaultfd_init_waitqueue helper
  userfaultfd: non-cooperative: generalize wake key structure
  userfaultfd: non-cooperative: allow synchronous EVENT_REMOVE

 fs/userfaultfd.c                 | 158 ++++++++++++++++++++++++++++-----------
 include/uapi/linux/userfaultfd.h |  11 +++
 2 files changed, 124 insertions(+), 45 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>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-10-25 16:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-25 16:23 [RFC PATCH 0/3] userfaultfd: non-cooperative: syncronous events Mike Rapoport
2017-10-25 16:23 ` [RFC PATCH 1/3] userfaultfd: introduce userfaultfd_init_waitqueue helper Mike Rapoport
     [not found] ` <1508948617-22505-1-git-send-email-rppt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2017-10-25 16:23   ` [RFC PATCH 2/3] userfaultfd: non-cooperative: generalize wake key structure Mike Rapoport
2017-10-25 16:23   ` [RFC PATCH 3/3] userfaultfd: non-cooperative: allow synchronous EVENT_REMOVE Mike Rapoport
  -- strict thread matches above, loose matches on Subject: below --
2017-10-25 16:19 [RFC PATCH 0/3] userfaultfd: non-cooperative: syncronous events Mike Rapoport

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).