public inbox for linux-arm-kernel@lists.infradead.org 
 help / color / mirror / Atom feed
From: vbabka@suse•cz (Vlastimil Babka)
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 11:16:10 +0200	[thread overview]
Message-ID: <55AF5F5A.3000707@suse.cz> (raw)
In-Reply-To: <1437508781-28655-3-git-send-email-emunson@akamai.com>

On 07/21/2015 09:59 PM, Eric B Munson 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

   ^ munlockall2?

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

  parent reply	other threads:[~2015-07-22  9:16 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1437508781-28655-1-git-send-email-emunson@akamai.com>
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 20:44   ` Andrew Morton
2015-07-22  1:25     ` Michael Ellerman
2015-07-22 14:15       ` Eric B Munson
2015-07-23  6:58         ` Ralf Baechle
2015-07-24 14:39           ` Eric B Munson
2015-07-24 15:46             ` Guenter Roeck
2015-07-24 15:53               ` Eric B Munson
2015-07-22  9:16   ` Vlastimil Babka [this message]
2015-07-22 14:05     ` 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=55AF5F5A.3000707@suse.cz \
    --to=vbabka@suse$(echo .)cz \
    --cc=linux-arm-kernel@lists$(echo .)infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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