linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: mlockall() with MCL_FUTURE
  2002-10-30  1:11 mlockall() with MCL_FUTURE Amol Kumar Lad
@ 2002-10-29 15:01 ` Tom Rini
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2002-10-29 15:01 UTC (permalink / raw)
  To: Amol Kumar Lad; +Cc: linux-kernel

On Tue, Oct 29, 2002 at 08:11:46PM -0500, Amol Kumar Lad wrote:
> 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.

-- 
Tom Rini (TR1265)
http://gate.crashing.org/~trini/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* mlockall() with MCL_FUTURE
@ 2002-10-30  1:11 Amol Kumar Lad
  2002-10-29 15:01 ` Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: Amol Kumar Lad @ 2002-10-30  1:11 UTC (permalink / raw)
  To: linux-kernel

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




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-10-29 14:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-30  1:11 mlockall() with MCL_FUTURE Amol Kumar Lad
2002-10-29 15:01 ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).