Re: [PATCH v2] mm: mlockall error for flag MCL_ONFAULT

2019-05-27 Thread Vlastimil Babka
On 5/27/19 9:53 AM, Potyra, Stefan wrote: > If mlockall() is called with only MCL_ONFAULT as flag, > it removes any previously applied lockings and does > nothing else. > > This behavior is counter-intuitive and doesn't match the > Linux man page. > > For mlockall(): > > EINVAL Unknown flag

[PATCH v2] mm: mlockall error for flag MCL_ONFAULT

2019-05-27 Thread Potyra, Stefan
If mlockall() is called with only MCL_ONFAULT as flag, it removes any previously applied lockings and does nothing else. This behavior is counter-intuitive and doesn't match the Linux man page. For mlockall(): EINVAL Unknown flags were specified or MCL_ONFAULT was specified with‐ o