lkml.org 
[lkml]   [2015]   [Jul]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH V5 0/7] Allow user to request memory to be locked on page fault
    From
    Date
    On 07/29/2015 12:45 PM, Michal Hocko wrote:
    >> In a much less
    >> likely corner case, it is not possible in the current setup to request
    >> all current VMAs be VM_LOCKONFAULT and all future be VM_LOCKED.
    >
    > Vlastimil has already pointed that out. MCL_FUTURE doesn't clear
    > MCL_CURRENT. I was quite surprised in the beginning but it makes a
    > perfect sense. mlockall call shouldn't lead into munlocking, that would
    > be just weird. Clearing MCL_FUTURE on MCL_CURRENT makes sense on the
    > other hand because the request is explicit about _current_ memory and it
    > doesn't lead to any munlocking.

    Yeah after more thinking it does make some sense despite the perceived
    inconsistency, but it's definitely worth documenting properly. It also already
    covers the usecase for munlockall2(MCL_FUTURE) which IIRC you had in the earlier
    revisions...


    \
     
     \ /
      Last update: 2015-07-29 21:11    [W:2.702 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site