Update the mlock.2 man page with information on mlock2() and the new
mlockall() flag MCL_ONFAULT.
Signed-off-by: Eric B Munson
Acked-by: Michal Hocko
Acked-by: Vlastimil Babka
Cc: Michal Hocko
Cc: Vlastimil Babka
Cc: Jonathan Corbet
Cc: linux-...@vger.kernel.org
Cc: linux...@kvack.org
Cc
On Mon, 09 Nov 2015, Eric B Munson wrote:
> On Mon, 09 Nov 2015, Geert Uytterhoeven wrote:
>
> > Hi,
> >
> > The following 2 patches are needed to fix build warnings on Debian/m68k
> > 4.0.
> >
> > However, after wiring up the mlock2 syscall, the
efore glibc
> 2.10.
>
> Signed-off-by: Geert Uytterhoeven
Acked-by: Eric B Munson
> ---
> tools/testing/selftests/vm/mlock2-tests.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/tools/testing/selftests/vm/mlock2-tests.c
> b/tools/testing/selftests/vm/mlock2-tests
warning: integer constant is too large for 'long' type
> mlock2-tests.c: In function 'test_lock_onfault_of_present':
> mlock2-tests.c:528: warning: integer constant is too large for 'long' type
> mlock2-tests.c:529: warning: integer constant is too large for 'long' type
>
> Signed-
On Mon, 09 Nov 2015, Geert Uytterhoeven wrote:
> Hi,
>
> The following 2 patches are needed to fix build warnings on Debian/m68k
> 4.0.
>
> However, after wiring up the mlock2 syscall, the test fails with:
>
> # ./mlock2-tests
> fread kpageflags: Success
> #
>
> as the fread() call
Update the mlock.2 man page with information on mlock2() and the new
mlockall() flag MCL_ONFAULT.
Signed-off-by: Eric B Munson <emun...@akamai.com>
Acked-by: Michal Hocko <mho...@suse.com>
Acked-by: Vlastimil Babka <vba...@suse.cz>
Cc: Michal Hocko <mho...@suse.cz>
efore glibc
> 2.10.
>
> Signed-off-by: Geert Uytterhoeven <ge...@linux-m68k.org>
Acked-by: Eric B Munson <emun...@akamai.com>
> ---
> tools/testing/selftests/vm/mlock2-tests.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/tools/testing/selftests/vm/mlock2-
On Mon, 09 Nov 2015, Geert Uytterhoeven wrote:
> Hi,
>
> The following 2 patches are needed to fix build warnings on Debian/m68k
> 4.0.
>
> However, after wiring up the mlock2 syscall, the test fails with:
>
> # ./mlock2-tests
> fread kpageflags: Success
> #
>
> as the fread() call
warning: integer constant is too large for 'long' type
> mlock2-tests.c: In function 'test_lock_onfault_of_present':
> mlock2-tests.c:528: warning: integer constant is too large for 'long' type
> mlock2-tests.c:529: warning: integer constant is too large for 'long' type
>
> Signed-off-b
On Mon, 09 Nov 2015, Eric B Munson wrote:
> On Mon, 09 Nov 2015, Geert Uytterhoeven wrote:
>
> > Hi,
> >
> > The following 2 patches are needed to fix build warnings on Debian/m68k
> > 4.0.
> >
> > However, after wiring up the mlock2 syscall, the
On Thu, 10 Sep 2015, Vlastimil Babka wrote:
> On 08/31/2015 04:20 PM, Eric B Munson wrote:
> > Update the mlock.2 man page with information on mlock2() and the new
> > mlockall() flag MCL_ONFAULT.
> >
> > Signed-off-by: Eric B Munson
> > Acked-by: Michal Hock
Update the mlock.2 man page with information on mlock2() and the new
mlockall() flag MCL_ONFAULT.
Signed-off-by: Eric B Munson
Acked-by: Michal Hocko
Acked-by: Vlastimil Babka
Cc: Michal Hocko
Cc: Vlastimil Babka
Cc: Jonathan Corbet
Cc: linux-...@vger.kernel.org
Cc: linux...@kvack.org
Cc
Update the mlock.2 man page with information on mlock2() and the new
mlockall() flag MCL_ONFAULT.
Signed-off-by: Eric B Munson <emun...@akamai.com>
Acked-by: Michal Hocko <mho...@suse.com>
Acked-by: Vlastimil Babka <vba...@suse.cz>
Cc: Michal Hocko <mho...@suse.cz>
On Thu, 10 Sep 2015, Vlastimil Babka wrote:
> On 08/31/2015 04:20 PM, Eric B Munson wrote:
> > Update the mlock.2 man page with information on mlock2() and the new
> > mlockall() flag MCL_ONFAULT.
> >
> > Signed-off-by: Eric B Munson <emun...@akamai.com>
to communicate the locked state of a VMA.
FOLL_POPULATE will now only control if the VMA should be populated and
in the case of VM_LOCKONFAULT, it will not be set.
Signed-off-by: Eric B Munson
Acked-by: Michal Hocko
Acked-by: Vlastimil Babka
Cc: Michal Hocko
Cc: Vlastimil Babka
Cc: Jonathan
that the limit test needs to be run a normal user.
Also add tests to use the new mlock2 family of system calls.
Signed-off-by: Eric B Munson
Cc: Thierry Reding
Cc: Shuah Khan
Cc: Michal Hocko
Cc: Vlastimil Babka
Cc: Jonathan Corbet
Cc: linux...@kvack.org
Cc: linux-kernel@vger.kernel.org
Cc
MAP_LOCKONFAULT for tile
Changes from V2:
Added new system calls for mlock, munlock, and munlockall with added
flags arguments for controlling how memory is locked or unlocked.
Eric B Munson (6):
mm: mlock: Refactor mlock, munlock, and munlockall code
mm: mlock: Add new mlock system call
mm: Introduce
With the refactored mlock code, introduce a new system call for mlock.
The new call will allow the user to specify what lock states are being
added. mlock2 is trivial at the moment, but a follow on patch will add
a new mlock state making it useful.
Signed-off-by: Eric B Munson
Acked
A previous commit introduced the new mlock2 syscall, add entries for the
MIPS architecture.
Signed-off-by: Eric B Munson
Acked-by: Ralf Baechle
Cc: Ralf Baechle
Cc: linux-m...@linux-mips.org
Cc: linux-...@vger.kernel.org
Cc: linux-a...@vger.kernel.org
Cc: linux...@kvack.org
Cc: linux-kernel
on.
munlock() will unconditionally clear both vma flags. munlockall()
unconditionally clears for VMA flags on all VMAs and in the
mm->def_flags field.
Signed-off-by: Eric B Munson
Acked-by: Vlastimil Babka
Acked-by: Michal Hocko
Cc: Michal Hocko
Cc: Vlastimil Babka
Cc: Jonathan Corbet
Cc: "Kir
, the code needs some reorganization so that all the actual
entry point handles is checking input and translating to VMA flags.
Signed-off-by: Eric B Munson
Acked-by: Kirill A. Shutemov
Acked-by: Vlastimil Babka
Acked-by: Michal Hocko
Cc: Michal Hocko
Cc: Vlastimil Babka
Cc: "Kirill A. Shu
MAP_LOCKONFAULT for tile
Changes from V2:
Added new system calls for mlock, munlock, and munlockall with added
flags arguments for controlling how memory is locked or unlocked.
Eric B Munson (6):
mm: mlock: Refactor mlock, munlock, and munlockall code
mm: mlock: Add new mlock system call
mm: Introduce
that the limit test needs to be run a normal user.
Also add tests to use the new mlock2 family of system calls.
Signed-off-by: Eric B Munson <emun...@akamai.com>
Cc: Thierry Reding <thierry.red...@gmail.com>
Cc: Shuah Khan <shua...@osg.samsung.com>
Cc: Michal Hocko <mho...@s
to communicate the locked state of a VMA.
FOLL_POPULATE will now only control if the VMA should be populated and
in the case of VM_LOCKONFAULT, it will not be set.
Signed-off-by: Eric B Munson <emun...@akamai.com>
Acked-by: Michal Hocko <mho...@suse.com>
Acked-by: Vlastimil Babka <
With the refactored mlock code, introduce a new system call for mlock.
The new call will allow the user to specify what lock states are being
added. mlock2 is trivial at the moment, but a follow on patch will add
a new mlock state making it useful.
Signed-off-by: Eric B Munson <e
A previous commit introduced the new mlock2 syscall, add entries for the
MIPS architecture.
Signed-off-by: Eric B Munson <emun...@akamai.com>
Acked-by: Ralf Baechle <r...@linux-mips.org>
Cc: Ralf Baechle <r...@linux-mips.org>
Cc: linux-m...@linux-mips.org
Cc: linux-...@vger.ke
on.
munlock() will unconditionally clear both vma flags. munlockall()
unconditionally clears for VMA flags on all VMAs and in the
mm->def_flags field.
Signed-off-by: Eric B Munson <emun...@akamai.com>
Acked-by: Vlastimil Babka <vba...@suse.cz>
Acked-by: Michal Hocko <mho...@suse.com>
Cc:
, the code needs some reorganization so that all the actual
entry point handles is checking input and translating to VMA flags.
Signed-off-by: Eric B Munson <emun...@akamai.com>
Acked-by: Kirill A. Shutemov <kirill.shute...@linux.intel.com>
Acked-by: Vlastimil Babka <vba...@suse.cz>
On August 28, 2015 10:18:30 AM EDT, Michal Hocko wrote:
>
>Why do we need to export this? Neither of the consumers care and should
>care. VM_LOCKONFAULT should never be set without VM_LOCKED which is the
>only thing that we should care about.
I am out of the office and I don't know if I will
On August 28, 2015 10:18:30 AM EDT, Michal Hocko wrote:
>
>Why do we need to export this? Neither of the consumers care and should
>care. VM_LOCKONFAULT should never be set without VM_LOCKED which is the
>only thing that we should care about.
I am out of the office and I
Update the mlock.2 man page with information on mlock2() and the new
mlockall() flag MCL_ONFAULT.
Signed-off-by: Eric B Munson
Acked-by: Michal Hocko
Cc: Michal Hocko
Cc: Vlastimil Babka
Cc: Jonathan Corbet
Cc: linux-...@vger.kernel.org
Cc: linux...@kvack.org
Cc: linux-kernel@vger.kernel.org
Update the mlock.2 man page with information on mlock2() and the new
mlockall() flag MCL_ONFAULT.
Signed-off-by: Eric B Munson <emun...@akamai.com>
Acked-by: Michal Hocko <mho...@suse.com>
Cc: Michal Hocko <mho...@suse.cz>
Cc: Vlastimil Babka <vba...@suse.cz>
Cc: Jonatha
On Fri, 28 Aug 2015, Michal Hocko wrote:
> On Wed 26-08-15 14:24:22, Eric B Munson wrote:
> > The cost of faulting in all memory to be locked can be very high when
> > working with large mappings. If only portions of the mapping will be
> > used this can incur a hig
On Fri, 28 Aug 2015, Eric B Munson wrote:
> Update the mlock.2 man page with information on mlock2() and the new
> mlockall() flag MCL_ONFAULT.
>
> Signed-off-by: Eric B Munson
> Cc: Michal Hocko
> Cc: Vlastimil Babka
> Cc: Jonathan Corbet
> Cc: linux-...@vge
Update the mlock.2 man page with information on mlock2() and the new
mlockall() flag MCL_ONFAULT.
Signed-off-by: Eric B Munson
Cc: Michal Hocko
Cc: Vlastimil Babka
Cc: Jonathan Corbet
Cc: linux-...@vger.kernel.org
Cc: linux...@kvack.org
Cc: linux-kernel@vger.kernel.org
---
man2/mlock.2
and should be noted.
Signed-off-by: Eric B Munson
Cc: Michal Hocko
Cc: David Rientjes
Cc: linux-...@vger.kernel.org
Cc: linux...@kvack.org
Cc: linux-kernel@vger.kernel.org
---
man2/mremap.2 | 11 +++
1 file changed, 11 insertions(+)
diff --git a/man2/mremap.2 b/man2/mremap.2
index 071adb5
and should be noted.
Signed-off-by: Eric B Munson emun...@akamai.com
Cc: Michal Hocko mho...@suse.cz
Cc: David Rientjes rient...@google.com
Cc: linux-...@vger.kernel.org
Cc: linux...@kvack.org
Cc: linux-kernel@vger.kernel.org
---
man2/mremap.2 | 11 +++
1 file changed, 11 insertions(+)
diff --git
Update the mlock.2 man page with information on mlock2() and the new
mlockall() flag MCL_ONFAULT.
Signed-off-by: Eric B Munson emun...@akamai.com
Cc: Michal Hocko mho...@suse.cz
Cc: Vlastimil Babka vba...@suse.cz
Cc: Jonathan Corbet cor...@lwn.net
Cc: linux-...@vger.kernel.org
Cc: linux
On Fri, 28 Aug 2015, Eric B Munson wrote:
Update the mlock.2 man page with information on mlock2() and the new
mlockall() flag MCL_ONFAULT.
Signed-off-by: Eric B Munson emun...@akamai.com
Cc: Michal Hocko mho...@suse.cz
Cc: Vlastimil Babka vba...@suse.cz
Cc: Jonathan Corbet cor...@lwn.net
On Fri, 28 Aug 2015, Michal Hocko wrote:
On Wed 26-08-15 14:24:22, Eric B Munson wrote:
The cost of faulting in all memory to be locked can be very high when
working with large mappings. If only portions of the mapping will be
used this can incur a high penalty for locking
A previous commit introduced the new mlock2 syscall, add entries for the
MIPS architecture.
Signed-off-by: Eric B Munson
Acked-by: Ralf Baechle
Cc: Ralf Baechle
Cc: linux-m...@linux-mips.org
Cc: linux-...@vger.kernel.org
Cc: linux-a...@vger.kernel.org
Cc: linux...@kvack.org
Cc: linux-kernel
that the limit test needs to be run a normal user.
Also add tests to use the new mlock2 family of system calls.
Signed-off-by: Eric B Munson
Cc: Thierry Reding
Cc: Shuah Khan
Cc: Michal Hocko
Cc: Vlastimil Babka
Cc: Jonathan Corbet
Cc: linux...@kvack.org
Cc: linux-kernel@vger.kernel.org
Cc
to communicate the locked state of a VMA.
FOLL_POPULATE will now only control if the VMA should be populated and
in the case of VM_LOCKONFAULT, it will not be set.
Signed-off-by: Eric B Munson
Cc: Michal Hocko
Cc: Vlastimil Babka
Cc: Jonathan Corbet
Cc: "Kirill A. Shutemov"
Cc: li
on.
munlock() will unconditionally clear both vma flags. munlockall()
unconditionally clears for VMA flags on all VMAs and in the
mm->def_flags field.
Signed-off-by: Eric B Munson
Acked-by: Vlastimil Babka
Cc: Michal Hocko
Cc: Vlastimil Babka
Cc: Jonathan Corbet
Cc: "Kirill A. Shutemov"
Cc: li
syscall entries, fix NR_syscalls on multiple arch's
Add missing MAP_LOCKONFAULT for tile
Changes from V2:
Added new system calls for mlock, munlock, and munlockall with added
flags arguments for controlling how memory is locked or unlocked.
Eric B Munson (6):
mm: mlock: Refactor mlock, munlock
With the refactored mlock code, introduce a new system call for mlock.
The new call will allow the user to specify what lock states are being
added. mlock2 is trivial at the moment, but a follow on patch will add
a new mlock state making it useful.
Signed-off-by: Eric B Munson
Acked
, the code needs some reorganization so that all the actual
entry point handles is checking input and translating to VMA flags.
Signed-off-by: Eric B Munson
Acked-by: Kirill A. Shutemov
Acked-by: Vlastimil Babka
Acked-by: Michal Hocko
Cc: Michal Hocko
Cc: Vlastimil Babka
Cc: "Kirill A. Shu
With the refactored mlock code, introduce a new system call for mlock.
The new call will allow the user to specify what lock states are being
added. mlock2 is trivial at the moment, but a follow on patch will add
a new mlock state making it useful.
Signed-off-by: Eric B Munson emun...@akamai.com
syscall entries, fix NR_syscalls on multiple arch's
Add missing MAP_LOCKONFAULT for tile
Changes from V2:
Added new system calls for mlock, munlock, and munlockall with added
flags arguments for controlling how memory is locked or unlocked.
Eric B Munson (6):
mm: mlock: Refactor mlock, munlock
, the code needs some reorganization so that all the actual
entry point handles is checking input and translating to VMA flags.
Signed-off-by: Eric B Munson emun...@akamai.com
Acked-by: Kirill A. Shutemov kirill.shute...@linux.intel.com
Acked-by: Vlastimil Babka vba...@suse.cz
Acked-by: Michal Hocko mho
() will unconditionally clear both vma flags. munlockall()
unconditionally clears for VMA flags on all VMAs and in the
mm-def_flags field.
Signed-off-by: Eric B Munson emun...@akamai.com
Acked-by: Vlastimil Babka vba...@suse.cz
Cc: Michal Hocko mho...@suse.cz
Cc: Vlastimil Babka vba...@suse.cz
Cc: Jonathan Corbet cor
to communicate the locked state of a VMA.
FOLL_POPULATE will now only control if the VMA should be populated and
in the case of VM_LOCKONFAULT, it will not be set.
Signed-off-by: Eric B Munson emun...@akamai.com
Cc: Michal Hocko mho...@suse.cz
Cc: Vlastimil Babka vba...@suse.cz
Cc: Jonathan Corbet
that the limit test needs to be run a normal user.
Also add tests to use the new mlock2 family of system calls.
Signed-off-by: Eric B Munson emun...@akamai.com
Cc: Thierry Reding thierry.red...@gmail.com
Cc: Shuah Khan shua...@osg.samsung.com
Cc: Michal Hocko mho...@suse.cz
Cc: Vlastimil Babka vba
A previous commit introduced the new mlock2 syscall, add entries for the
MIPS architecture.
Signed-off-by: Eric B Munson emun...@akamai.com
Acked-by: Ralf Baechle r...@linux-mips.org
Cc: Ralf Baechle r...@linux-mips.org
Cc: linux-m...@linux-mips.org
Cc: linux-...@vger.kernel.org
Cc: linux
On Tue, 25 Aug 2015, Michal Hocko wrote:
> On Tue 25-08-15 10:29:02, Eric B Munson wrote:
> > On Tue, 25 Aug 2015, Michal Hocko wrote:
> [...]
> > > Considering the current behavior I do not thing it would be terrible
> > > thing to do what Konstantin was suggest
On Tue, 25 Aug 2015, Michal Hocko wrote:
> On Fri 21-08-15 14:31:32, Eric B Munson wrote:
> [...]
> > I am in the middle of implementing lock on fault this way, but I cannot
> > see how we will hanlde mremap of a lock on fault region. Say we have
> > the following:
>
On Tue, 25 Aug 2015, Michal Hocko wrote:
On Fri 21-08-15 14:31:32, Eric B Munson wrote:
[...]
I am in the middle of implementing lock on fault this way, but I cannot
see how we will hanlde mremap of a lock on fault region. Say we have
the following:
addr = mmap(len
On Tue, 25 Aug 2015, Michal Hocko wrote:
On Tue 25-08-15 10:29:02, Eric B Munson wrote:
On Tue, 25 Aug 2015, Michal Hocko wrote:
[...]
Considering the current behavior I do not thing it would be terrible
thing to do what Konstantin was suggesting and populate only the full
ranges
On Mon, 24 Aug 2015, Konstantin Khlebnikov wrote:
> On Mon, Aug 24, 2015 at 8:00 PM, Eric B Munson wrote:
> > On Mon, 24 Aug 2015, Konstantin Khlebnikov wrote:
> >
> >> On Mon, Aug 24, 2015 at 6:55 PM, Eric B Munson wrote:
> >> > On Mon, 24 A
On Mon, 24 Aug 2015, Konstantin Khlebnikov wrote:
> On Mon, Aug 24, 2015 at 6:55 PM, Eric B Munson wrote:
> > On Mon, 24 Aug 2015, Konstantin Khlebnikov wrote:
> >
> >> On Mon, Aug 24, 2015 at 6:09 PM, Eric B Munson wrote:
> >> > On Mon, 24 Aug 2015, Vlastim
On Mon, 24 Aug 2015, Konstantin Khlebnikov wrote:
> On Mon, Aug 24, 2015 at 6:09 PM, Eric B Munson wrote:
> > On Mon, 24 Aug 2015, Vlastimil Babka wrote:
> >
> >> On 08/24/2015 03:50 PM, Konstantin Khlebnikov wrote:
> >> >On Mon, Aug 24, 2015 at 4:30 PM, Vla
On Mon, 24 Aug 2015, Vlastimil Babka wrote:
> On 08/24/2015 03:50 PM, Konstantin Khlebnikov wrote:
> >On Mon, Aug 24, 2015 at 4:30 PM, Vlastimil Babka wrote:
> >>On 08/24/2015 12:17 PM, Konstantin Khlebnikov wrote:
>
>
> I am in the middle of implementing lock on fault this way,
On Mon, 24 Aug 2015, Vlastimil Babka wrote:
On 08/24/2015 03:50 PM, Konstantin Khlebnikov wrote:
On Mon, Aug 24, 2015 at 4:30 PM, Vlastimil Babka vba...@suse.cz wrote:
On 08/24/2015 12:17 PM, Konstantin Khlebnikov wrote:
I am in the middle of implementing lock on fault this way, but I
On Mon, 24 Aug 2015, Konstantin Khlebnikov wrote:
On Mon, Aug 24, 2015 at 6:09 PM, Eric B Munson emun...@akamai.com wrote:
On Mon, 24 Aug 2015, Vlastimil Babka wrote:
On 08/24/2015 03:50 PM, Konstantin Khlebnikov wrote:
On Mon, Aug 24, 2015 at 4:30 PM, Vlastimil Babka vba...@suse.cz
On Mon, 24 Aug 2015, Konstantin Khlebnikov wrote:
On Mon, Aug 24, 2015 at 6:55 PM, Eric B Munson emun...@akamai.com wrote:
On Mon, 24 Aug 2015, Konstantin Khlebnikov wrote:
On Mon, Aug 24, 2015 at 6:09 PM, Eric B Munson emun...@akamai.com wrote:
On Mon, 24 Aug 2015, Vlastimil Babka
On Mon, 24 Aug 2015, Konstantin Khlebnikov wrote:
On Mon, Aug 24, 2015 at 8:00 PM, Eric B Munson emun...@akamai.com wrote:
On Mon, 24 Aug 2015, Konstantin Khlebnikov wrote:
On Mon, Aug 24, 2015 at 6:55 PM, Eric B Munson emun...@akamai.com wrote:
On Mon, 24 Aug 2015, Konstantin
On Fri, 21 Aug 2015, Michal Hocko wrote:
> On Thu 20-08-15 13:03:09, Eric B Munson wrote:
> > On Thu, 20 Aug 2015, Michal Hocko wrote:
> >
> > > On Wed 19-08-15 17:33:45, Eric B Munson wrote:
> > > [...]
> > > > The group which asked for this feature
On Fri, 21 Aug 2015, Michal Hocko wrote:
On Thu 20-08-15 13:03:09, Eric B Munson wrote:
On Thu, 20 Aug 2015, Michal Hocko wrote:
On Wed 19-08-15 17:33:45, Eric B Munson wrote:
[...]
The group which asked for this feature here
wants the ability to distinguish between LOCKED
On Thu, 20 Aug 2015, Michal Hocko wrote:
> On Wed 19-08-15 17:33:45, Eric B Munson wrote:
> [...]
> > The group which asked for this feature here
> > wants the ability to distinguish between LOCKED and LOCKONFAULT regions
> > and without the VMA flag there isn't a way to
On Thu, 20 Aug 2015, Michal Hocko wrote:
On Wed 19-08-15 17:33:45, Eric B Munson wrote:
[...]
The group which asked for this feature here
wants the ability to distinguish between LOCKED and LOCKONFAULT regions
and without the VMA flag there isn't a way to do that.
Could you be more
On Wed, 12 Aug 2015, Michal Hocko wrote:
> On Sun 09-08-15 01:22:53, Eric B Munson wrote:
> > The cost of faulting in all memory to be locked can be very high when
> > working with large mappings. If only portions of the mapping will be
> > used this can incur a hig
On Wed, 12 Aug 2015, Michal Hocko wrote:
On Sun 09-08-15 01:22:53, Eric B Munson wrote:
The cost of faulting in all memory to be locked can be very high when
working with large mappings. If only portions of the mapping will be
used this can incur a high penalty for locking
, the code needs some reorganization so that all the actual
entry point handles is checking input and translating to VMA flags.
Signed-off-by: Eric B Munson
Acked-by: Kirill A. Shutemov
Acked-by: Vlastimil Babka
Cc: Michal Hocko
Cc: Vlastimil Babka
Cc: "Kirill A. Shutemov"
Cc: linux...@kv
on.
munlock() will unconditionally clear both vma flags. munlockall()
unconditionally clears for VMA flags on all VMAs and in the
mm->def_flags field.
Signed-off-by: Eric B Munson
Acked-by: Vlastimil Babka
Cc: Michal Hocko
Cc: Vlastimil Babka
Cc: Jonathan Corbet
Cc: "Kirill A. Shutemov"
Cc: li
V2:
Added new system calls for mlock, munlock, and munlockall with added
flags arguments for controlling how memory is locked or unlocked.
Eric B Munson (6):
mm: mlock: Refactor mlock, munlock, and munlockall code
mm: mlock: Add new mlock system call
mm: Introduce VM_LOCKONFAULT
mm: mlock
to communicate the locked state of a VMA.
FOLL_POPULATE will now only control if the VMA should be populated and
in the case of VM_LOCKONFAULT, it will not be set.
Signed-off-by: Eric B Munson
Acked-by: Kirill A. Shutemov
Cc: Michal Hocko
Cc: Vlastimil Babka
Cc: Jonathan Corbet
Cc: "K
that the limit test needs to be run a normal user.
Also add tests to use the new mlock2 family of system calls.
Signed-off-by: Eric B Munson
Cc: Shuah Khan
Cc: Michal Hocko
Cc: Vlastimil Babka
Cc: Jonathan Corbet
Cc: linux...@kvack.org
Cc: linux-kernel@vger.kernel.org
Cc: linux
A previous commit introduced the new mlock2 syscall, add entries for the
MIPS architecture.
Signed-off-by: Eric B Munson
Acked-by: Ralf Baechle
Cc: Ralf Baechle
Cc: linux-m...@linux-mips.org
Cc: linux-...@vger.kernel.org
Cc: linux-a...@vger.kernel.org
Cc: linux...@kvack.org
Cc: linux-kernel
With the refactored mlock code, introduce a new system call for mlock.
The new call will allow the user to specify what lock states are being
added. mlock2 is trivial at the moment, but a follow on patch will add
a new mlock state making it useful.
Signed-off-by: Eric B Munson
Acked
A previous commit introduced the new mlock2 syscall, add entries for the
MIPS architecture.
Signed-off-by: Eric B Munson emun...@akamai.com
Acked-by: Ralf Baechle r...@linux-mips.org
Cc: Ralf Baechle r...@linux-mips.org
Cc: linux-m...@linux-mips.org
Cc: linux-...@vger.kernel.org
Cc: linux
With the refactored mlock code, introduce a new system call for mlock.
The new call will allow the user to specify what lock states are being
added. mlock2 is trivial at the moment, but a follow on patch will add
a new mlock state making it useful.
Signed-off-by: Eric B Munson emun...@akamai.com
that the limit test needs to be run a normal user.
Also add tests to use the new mlock2 family of system calls.
Signed-off-by: Eric B Munson emun...@akamai.com
Cc: Shuah Khan shua...@osg.samsung.com
Cc: Michal Hocko mho...@suse.cz
Cc: Vlastimil Babka vba...@suse.cz
Cc: Jonathan Corbet cor
V2:
Added new system calls for mlock, munlock, and munlockall with added
flags arguments for controlling how memory is locked or unlocked.
Eric B Munson (6):
mm: mlock: Refactor mlock, munlock, and munlockall code
mm: mlock: Add new mlock system call
mm: Introduce VM_LOCKONFAULT
mm: mlock
to communicate the locked state of a VMA.
FOLL_POPULATE will now only control if the VMA should be populated and
in the case of VM_LOCKONFAULT, it will not be set.
Signed-off-by: Eric B Munson emun...@akamai.com
Acked-by: Kirill A. Shutemov kirill.shute...@linux.intel.com
Cc: Michal Hocko mho
, the code needs some reorganization so that all the actual
entry point handles is checking input and translating to VMA flags.
Signed-off-by: Eric B Munson emun...@akamai.com
Acked-by: Kirill A. Shutemov kirill.shute...@linux.intel.com
Acked-by: Vlastimil Babka vba...@suse.cz
Cc: Michal Hocko mho
() will unconditionally clear both vma flags. munlockall()
unconditionally clears for VMA flags on all VMAs and in the
mm-def_flags field.
Signed-off-by: Eric B Munson emun...@akamai.com
Acked-by: Vlastimil Babka vba...@suse.cz
Cc: Michal Hocko mho...@suse.cz
Cc: Vlastimil Babka vba...@suse.cz
Cc: Jonathan Corbet cor
On Thu, 06 Aug 2015, Vlastimil Babka wrote:
...
> >
> >diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c
> >index ca1e091..38d69fc 100644
> >--- a/fs/proc/task_mmu.c
> >+++ b/fs/proc/task_mmu.c
> >@@ -579,6 +579,7 @@ static void show_smap_vma_flags(struct seq_file *m,
> >struct vm_area_struct
On Thu, 06 Aug 2015, Vlastimil Babka wrote:
...
diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c
index ca1e091..38d69fc 100644
--- a/fs/proc/task_mmu.c
+++ b/fs/proc/task_mmu.c
@@ -579,6 +579,7 @@ static void show_smap_vma_flags(struct seq_file *m,
struct vm_area_struct *vma)
This
on multiple arch's
Add missing MAP_LOCKONFAULT for tile
Changes from V2:
Added new system calls for mlock, munlock, and munlockall with added
flags arguments for controlling how memory is locked or unlocked.
Eric B Munson (6):
mm: mlock: Refactor mlock, munlock, and munlockall code
mm: mlock
, the code needs some reorganization so that all the actual
entry point handles is checking input and translating to VMA flags.
Signed-off-by: Eric B Munson
Acked-by: Kirill A. Shutemov
Cc: Michal Hocko
Cc: Vlastimil Babka
Cc: "Kirill A. Shutemov"
Cc: linux...@kvack.org
Cc: li
to communicate the locked state of a VMA.
FOLL_POPULATE will now only control if the VMA should be populated and
in the case of VM_LOCKONFAULT, it will not be set.
Signed-off-by: Eric B Munson
Acked-by: Kirill A. Shutemov
Cc: Michal Hocko
Cc: Vlastimil Babka
Cc: Jonathan Corbet
Cc: "K
on.
munlock() will unconditionally clear both vma flags. munlockall()
unconditionally clears for VMA flags on all VMAs and in the
mm->def_flags field.
Signed-off-by: Eric B Munson
Cc: Michal Hocko
Cc: Vlastimil Babka
Cc: Jonathan Corbet
Cc: "Kirill A. Shutemov"
Cc: linux-al...@vger.ke
With the refactored mlock code, introduce a new system call for mlock.
The new call will allow the user to specify what lock states are being
added. mlock2 is trivial at the moment, but a follow on patch will add
a new mlock state making it useful.
Signed-off-by: Eric B Munson
Cc: Michal Hocko
A previous commit introduced the new mlock2 syscall, add entries for the
MIPS architecture.
Signed-off-by: Eric B Munson
Cc: Ralf Baechle
Cc: linux-m...@linux-mips.org
Cc: linux-...@vger.kernel.org
Cc: linux-a...@vger.kernel.org
Cc: linux...@kvack.org
Cc: linux-kernel@vger.kernel.org
---
arch
. Note that the limit test needs to be run a normal user.
Also add tests to use the new mlock2 family of system calls.
Signed-off-by: Eric B Munson
Cc: Shuah Khan
Cc: Michal Hocko
Cc: Vlastimil Babka
Cc: Jonathan Corbet
Cc: linux...@kvack.org
Cc: linux-kernel@vger.kernel.org
Cc: linux
. Note that the limit test needs to be run a normal user.
Also add tests to use the new mlock2 family of system calls.
Signed-off-by: Eric B Munson emun...@akamai.com
Cc: Shuah Khan shua...@osg.samsung.com
Cc: Michal Hocko mho...@suse.cz
Cc: Vlastimil Babka vba...@suse.cz
Cc: Jonathan Corbet cor
A previous commit introduced the new mlock2 syscall, add entries for the
MIPS architecture.
Signed-off-by: Eric B Munson emun...@akamai.com
Cc: Ralf Baechle r...@linux-mips.org
Cc: linux-m...@linux-mips.org
Cc: linux-...@vger.kernel.org
Cc: linux-a...@vger.kernel.org
Cc: linux...@kvack.org
Cc
to communicate the locked state of a VMA.
FOLL_POPULATE will now only control if the VMA should be populated and
in the case of VM_LOCKONFAULT, it will not be set.
Signed-off-by: Eric B Munson emun...@akamai.com
Acked-by: Kirill A. Shutemov kirill.shute...@linux.intel.com
Cc: Michal Hocko mho
, the code needs some reorganization so that all the actual
entry point handles is checking input and translating to VMA flags.
Signed-off-by: Eric B Munson emun...@akamai.com
Acked-by: Kirill A. Shutemov kirill.shute...@linux.intel.com
Cc: Michal Hocko mho...@suse.cz
Cc: Vlastimil Babka vba...@suse.cz
With the refactored mlock code, introduce a new system call for mlock.
The new call will allow the user to specify what lock states are being
added. mlock2 is trivial at the moment, but a follow on patch will add
a new mlock state making it useful.
Signed-off-by: Eric B Munson emun...@akamai.com
1 - 100 of 354 matches
Mail list logo