Skip to contentSkip to conversation

mlockall() with MCL_FUTURE

DISCUSSION Amol Kumar Lad 2 participants 2 messages Oct 29, 2002

lore
Share & tools
lore
#0 lore raw

Hi,
I was just going through its implementation. If mlockall() is invoked
with MCL_FUTURE, does it mean that all the existing locked mappings of process should get unlocked ? Attaching code segment from do_mlockall(). I am using 2.4.18 kernel

static int do_mlockall(int flags)
{
...

                newflags = vma->vm_flags | VM_LOCKED;
                if (!(flags & MCL_CURRENT))
                        newflags &= ~VM_LOCKED;
                error = mlock_fixup(vma, vma->vm_start, vma->vm_end,

newflags);
...
}

please cc me.

thanks
Amol

#1 lore raw
Quoted 5 lines · Amol Kumar Lad

Hi,
I was just going through its implementation. If mlockall() is invoked
with MCL_FUTURE, does it mean that all the existing locked mappings of process should get unlocked ? Attaching code segment from do_mlockall(). I am using 2.4.18 kernel

There is a problem here which is fixed in 2.4.19, I believe.

Signature · 2 lines
Tom Rini (TR1265)
http://gate.crashing.org/~trini/