All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Menyhart, Zoltan" <Zoltan.Menyhart@free.fr>
To: linux-kernel@vger.kernel.org
Subject: dup_mmap() questions
Date: Thu, 17 Feb 2005 00:15:04 +0100	[thread overview]
Message-ID: <4213D3F8.2000904@free.fr> (raw)

We lock the semaphore of the old "mm" for write.
Usually we do this when the corresponding VMA list is being modified.
Does "dup_mmap()" modify the old VMA list ?
Or would a "down_read(&oldmm->mmap_sem)" be enough ?

Should not we lock for write the semaphore of the new "mm" ?
It is on the "mmlist", it can be seen.
The new "vma" is on the "anon" list and on the "vma_prio_tree",
can it be done without holding for write the semaphore of the new "mm" ?

Should not we hold for write the semaphore of the new "mm"
when the new "vma" is actually added ?
Is the "page_table_lock" enough ?

Apparently, the argument "oldmm" is equal to "current->mm".
Why do we pass it as an argument ?

Thanks.




                 reply	other threads:[~2005-02-16 23:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4213D3F8.2000904@free.fr \
    --to=zoltan.menyhart@free.fr \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.