All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric B Munson <emunson@akamai.com>
To: Michael Ellerman <mpe@ellerman.id.au>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	linux-mips@linux-mips.org, linux-m68k@vger.kernel.org,
	linux-ia64@vger.kernel.org, linux-sh@vger.kernel.org,
	Catalin Marinas <catalin.marinas@arm.com>,
	Heiko Carstens <heiko.carstens@de.ibm.com>,
	Michal Hocko <mhocko@suse.cz>,
	linux-mm@kvack.org, sparclinux@vger.kernel.org,
	linux-arch@vger.kernel.org,
	Stephen Rothwell <sfr@canb.auug.org.au>,
	linux-am33-list@redhat.com,
	Geert Uytterhoeven <geert@linux-m68k.org>,
	Vlastimil Babka <vbabka@suse.cz>,
	Guenter Roeck <linux@roeck-us.net>,
	linux-xtensa@linux-xtensa.org, linux-s390@vger.kernel.org,
	adi-buildroot-devel@lists.sourceforge.net,
	linux-arm-kernel@lists.infradead.org, linux-cris-kernel@axis.com,
	linux-parisc@vger.kernel.org, linux-api@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-alpha@vger.kernel.org,
	linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH V4 2/6] mm: mlock: Add new mlock, munlock, and munlockall system calls
Date: Wed, 22 Jul 2015 10:15:01 -0400	[thread overview]
Message-ID: <20150722141501.GA3203@akamai.com> (raw)
In-Reply-To: <1437528316.16792.7.camel@ellerman.id.au>

[-- Attachment #1: Type: text/plain, Size: 1353 bytes --]

On Wed, 22 Jul 2015, Michael Ellerman wrote:

> On Tue, 2015-07-21 at 13:44 -0700, Andrew Morton wrote:
> > On Tue, 21 Jul 2015 15:59:37 -0400 Eric B Munson <emunson@akamai.com> wrote:
> > 
> > > With the refactored mlock code, introduce new system calls for mlock,
> > > munlock, and munlockall.  The new calls will allow the user to specify
> > > what lock states are being added or cleared.  mlock2 and munlock2 are
> > > trivial at the moment, but a follow on patch will add a new mlock state
> > > making them useful.
> > > 
> > > munlock2 addresses a limitation of the current implementation.  If a
> > > user calls mlockall(MCL_CURRENT | MCL_FUTURE) and then later decides
> > > that MCL_FUTURE should be removed, they would have to call munlockall()
> > > followed by mlockall(MCL_CURRENT) which could potentially be very
> > > expensive.  The new munlockall2 system call allows a user to simply
> > > clear the MCL_FUTURE flag.
> > 
> > This is hard.  Maybe we shouldn't have wired up anything other than
> > x86.  That's what we usually do with new syscalls.
> 
> Yeah I think so.
> 
> You haven't wired it up properly on powerpc, but I haven't mentioned it because
> I'd rather we did it.
> 
> cheers

It looks like I will be spinning a V5, so I will drop all but the x86
system calls additions in that version.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: Eric B Munson <emunson@akamai.com>
To: Michael Ellerman <mpe@ellerman.id.au>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	linux-mips@linux-mips.org, linux-m68k@vger.kernel.org,
	linux-ia64@vger.kernel.org, linux-sh@vger.kernel.org,
	Catalin Marinas <catalin.marinas@arm.com>,
	Heiko Carstens <heiko.carstens@de.ibm.com>,
	Michal Hocko <mhocko@suse.cz>,
	linux-mm@kvack.org, sparclinux@vger.kernel.org,
	linux-arch@vger.kernel.org,
	Stephen Rothwell <sfr@canb.auug.org.au>,
	linux-am33-list@redhat.com,
	Geert Uytterhoeven <geert@linux-m68k.org>,
	Vlastimil Babka <vbabka@suse.cz>,
	Guenter Roeck <linux@roeck-us.net>,
	linux-xtensa@linux-xtensa.org, linux-s390@vger.kernel.org,
	adi-buildroot-devel@lists.sourceforge.net,
	linux-arm-kernel@lists.infradead.org, linux-cris-kernel@axis.com,
	linux-parisc@vger.kernel.org, linux-api@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-alpha@vger.kernel.org,
	linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH V4 2/6] mm: mlock: Add new mlock, munlock, and munlockall system calls
Date: Wed, 22 Jul 2015 14:15:01 +0000	[thread overview]
Message-ID: <20150722141501.GA3203@akamai.com> (raw)
In-Reply-To: <1437528316.16792.7.camel@ellerman.id.au>

[-- Attachment #1: Type: text/plain, Size: 1353 bytes --]

On Wed, 22 Jul 2015, Michael Ellerman wrote:

> On Tue, 2015-07-21 at 13:44 -0700, Andrew Morton wrote:
> > On Tue, 21 Jul 2015 15:59:37 -0400 Eric B Munson <emunson@akamai.com> wrote:
> > 
> > > With the refactored mlock code, introduce new system calls for mlock,
> > > munlock, and munlockall.  The new calls will allow the user to specify
> > > what lock states are being added or cleared.  mlock2 and munlock2 are
> > > trivial at the moment, but a follow on patch will add a new mlock state
> > > making them useful.
> > > 
> > > munlock2 addresses a limitation of the current implementation.  If a
> > > user calls mlockall(MCL_CURRENT | MCL_FUTURE) and then later decides
> > > that MCL_FUTURE should be removed, they would have to call munlockall()
> > > followed by mlockall(MCL_CURRENT) which could potentially be very
> > > expensive.  The new munlockall2 system call allows a user to simply
> > > clear the MCL_FUTURE flag.
> > 
> > This is hard.  Maybe we shouldn't have wired up anything other than
> > x86.  That's what we usually do with new syscalls.
> 
> Yeah I think so.
> 
> You haven't wired it up properly on powerpc, but I haven't mentioned it because
> I'd rather we did it.
> 
> cheers

It looks like I will be spinning a V5, so I will drop all but the x86
system calls additions in that version.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: emunson@akamai.com (Eric B Munson)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH V4 2/6] mm: mlock: Add new mlock, munlock, and munlockall system calls
Date: Wed, 22 Jul 2015 10:15:01 -0400	[thread overview]
Message-ID: <20150722141501.GA3203@akamai.com> (raw)
In-Reply-To: <1437528316.16792.7.camel@ellerman.id.au>

On Wed, 22 Jul 2015, Michael Ellerman wrote:

> On Tue, 2015-07-21 at 13:44 -0700, Andrew Morton wrote:
> > On Tue, 21 Jul 2015 15:59:37 -0400 Eric B Munson <emunson@akamai.com> wrote:
> > 
> > > With the refactored mlock code, introduce new system calls for mlock,
> > > munlock, and munlockall.  The new calls will allow the user to specify
> > > what lock states are being added or cleared.  mlock2 and munlock2 are
> > > trivial at the moment, but a follow on patch will add a new mlock state
> > > making them useful.
> > > 
> > > munlock2 addresses a limitation of the current implementation.  If a
> > > user calls mlockall(MCL_CURRENT | MCL_FUTURE) and then later decides
> > > that MCL_FUTURE should be removed, they would have to call munlockall()
> > > followed by mlockall(MCL_CURRENT) which could potentially be very
> > > expensive.  The new munlockall2 system call allows a user to simply
> > > clear the MCL_FUTURE flag.
> > 
> > This is hard.  Maybe we shouldn't have wired up anything other than
> > x86.  That's what we usually do with new syscalls.
> 
> Yeah I think so.
> 
> You haven't wired it up properly on powerpc, but I haven't mentioned it because
> I'd rather we did it.
> 
> cheers

It looks like I will be spinning a V5, so I will drop all but the x86
system calls additions in that version.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150722/aaa1b242/attachment.sig>

  reply	other threads:[~2015-07-22 14:15 UTC|newest]

Thread overview: 85+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-21 19:59 [PATCH V4 0/6] Allow user to request memory to be locked on page fault Eric B Munson
2015-07-21 19:59 ` Eric B Munson
2015-07-21 19:59 ` Eric B Munson
2015-07-21 19:59 ` [PATCH V4 1/6] mm: mlock: Refactor mlock, munlock, and munlockall code Eric B Munson
2015-07-21 19:59   ` Eric B Munson
2015-07-22 10:42   ` Kirill A. Shutemov
2015-07-22 10:42     ` Kirill A. Shutemov
2015-07-22 14:04     ` Eric B Munson
2015-07-21 19:59 ` [PATCH V4 2/6] mm: mlock: Add new mlock, munlock, and munlockall system calls Eric B Munson
2015-07-21 19:59   ` Eric B Munson
2015-07-21 19:59   ` Eric B Munson
2015-07-21 19:59   ` Eric B Munson
2015-07-21 19:59   ` Eric B Munson
2015-07-21 20:44   ` Andrew Morton
2015-07-21 20:44     ` Andrew Morton
2015-07-21 20:44     ` Andrew Morton
2015-07-21 20:44     ` Andrew Morton
2015-07-22  1:25     ` Michael Ellerman
2015-07-22  1:25       ` Michael Ellerman
2015-07-22  1:25       ` Michael Ellerman
2015-07-22  1:25       ` Michael Ellerman
2015-07-22 14:15       ` Eric B Munson [this message]
2015-07-22 14:15         ` Eric B Munson
2015-07-22 14:15         ` Eric B Munson
2015-07-23  6:58         ` Ralf Baechle
2015-07-23  6:58           ` Ralf Baechle
2015-07-23  6:58           ` Ralf Baechle
2015-07-23  6:58           ` Ralf Baechle
2015-07-23  6:58           ` Ralf Baechle
2015-07-23  6:58           ` Ralf Baechle
2015-07-24 14:39           ` Eric B Munson
2015-07-24 14:39             ` Eric B Munson
2015-07-24 14:39             ` Eric B Munson
2015-07-24 14:39             ` Eric B Munson
     [not found]             ` <20150724143936.GE9203-JqFfY2XvxFXQT0dZR+AlfA@public.gmane.org>
2015-07-24 15:46               ` Guenter Roeck
2015-07-24 15:46                 ` Guenter Roeck
2015-07-24 15:46                 ` Guenter Roeck
2015-07-24 15:46                 ` Guenter Roeck
2015-07-24 15:46                 ` Guenter Roeck
2015-07-24 15:53                 ` Eric B Munson
2015-07-24 15:53                   ` Eric B Munson
2015-07-24 15:53                   ` Eric B Munson
2015-07-24 15:53                   ` Eric B Munson
2015-07-22  9:16   ` Vlastimil Babka
2015-07-22  9:16     ` Vlastimil Babka
2015-07-22  9:16     ` Vlastimil Babka
2015-07-22  9:16     ` Vlastimil Babka
2015-07-22  9:16     ` Vlastimil Babka
2015-07-22 14:05     ` Eric B Munson
2015-07-22 14:05     ` Eric B Munson
2015-07-22 14:05       ` Eric B Munson
2015-07-22 14:05       ` Eric B Munson
2015-07-22 14:05       ` Eric B Munson
2015-07-21 19:59 ` Eric B Munson
2015-07-21 19:59 ` [PATCH V4 3/6] mm: gup: Add mm_lock_present() Eric B Munson
2015-07-21 19:59   ` Eric B Munson
2015-07-22 11:13   ` Kirill A. Shutemov
2015-07-22 11:13     ` Kirill A. Shutemov
2015-07-22 14:11     ` Eric B Munson
2015-07-21 19:59 ` [PATCH V4 4/6] mm: mlock: Introduce VM_LOCKONFAULT and add mlock flags to enable it Eric B Munson
2015-07-21 19:59   ` Eric B Munson
2015-07-21 19:59   ` Eric B Munson
2015-07-22 10:03   ` Vlastimil Babka
2015-07-22 10:03     ` Vlastimil Babka
2015-07-22 10:03     ` Vlastimil Babka
2015-07-22 18:43     ` Eric B Munson
2015-07-22 18:43       ` Eric B Munson
2015-07-23 10:03       ` Vlastimil Babka
2015-07-23 10:03         ` Vlastimil Babka
2015-07-23 10:03         ` Vlastimil Babka
2015-07-23 15:21         ` Eric B Munson
2015-07-23 15:21           ` Eric B Munson
2015-07-21 19:59 ` [PATCH V4 5/6] mm: mmap: Add mmap flag to request VM_LOCKONFAULT Eric B Munson
2015-07-21 19:59   ` Eric B Munson
2015-07-21 19:59   ` Eric B Munson
2015-07-22 11:25   ` Kirill A. Shutemov
2015-07-22 11:25     ` Kirill A. Shutemov
2015-07-22 11:25     ` Kirill A. Shutemov
2015-07-22 14:32     ` Eric B Munson
2015-07-22 14:32       ` Eric B Munson
2015-07-22 15:45       ` Kirill A. Shutemov
2015-07-22 15:45         ` Kirill A. Shutemov
2015-07-22 15:45         ` Kirill A. Shutemov
2015-07-21 19:59 ` [PATCH V4 6/6] selftests: vm: Add tests for lock on fault Eric B Munson
2015-07-21 19:59   ` Eric B Munson

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=20150722141501.GA3203@akamai.com \
    --to=emunson@akamai.com \
    --cc=adi-buildroot-devel@lists.sourceforge.net \
    --cc=akpm@linux-foundation.org \
    --cc=catalin.marinas@arm.com \
    --cc=geert@linux-m68k.org \
    --cc=heiko.carstens@de.ibm.com \
    --cc=linux-alpha@vger.kernel.org \
    --cc=linux-am33-list@redhat.com \
    --cc=linux-api@vger.kernel.org \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-cris-kernel@axis.com \
    --cc=linux-ia64@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-m68k@vger.kernel.org \
    --cc=linux-mips@linux-mips.org \
    --cc=linux-mm@kvack.org \
    --cc=linux-parisc@vger.kernel.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=linux-sh@vger.kernel.org \
    --cc=linux-xtensa@linux-xtensa.org \
    --cc=linux@roeck-us.net \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=mhocko@suse.cz \
    --cc=mpe@ellerman.id.au \
    --cc=sfr@canb.auug.org.au \
    --cc=sparclinux@vger.kernel.org \
    --cc=vbabka@suse.cz \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.