From: Linus Torvalds <torvalds@osdl.org>
To: Smarduch Mario-CMS063 <CMS063@motorola.com>
Cc: Hugh Dickins <hugh@veritas.com>, linux-kernel@vger.kernel.org
Subject: RE: Multi-Threaded fork() correctness on Linux 2.4 & 2.6
Date: Mon, 19 Sep 2005 13:47:28 -0700 (PDT) [thread overview]
Message-ID: <Pine.LNX.4.58.0509191343540.2553@g5.osdl.org> (raw)
In-Reply-To: <A752C16E6296D711942200065BFCB6942521C78F@il02exm10>
On Mon, 19 Sep 2005, Smarduch Mario-CMS063 wrote:
>
> But I don't see the samething in 2.4.31 (which what we're using now).
I'm pretty sure 2.4.x should have the mmap_sem too.
But I think there it's aquired by the caller of dup_mmap() (ie it's
"copy_mm()" that gets the mmap_sem and holds it for the duration of
dup_mmap).
In fact, I'm sure: the mmap_sem was changed from a regular semaphore to a
read-write semaphore in 2.4.2.5, and we definitely took it around
dup_mmap() at that point.
Of course, maybe some broken change removed it later in 2.4.x, I don't
keep a current 2.4.x tree around.
Linus
next prev parent reply other threads:[~2005-09-19 20:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-19 20:21 Smarduch Mario-CMS063
2005-09-19 20:47 ` Linus Torvalds [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-09-19 20:34 Smarduch Mario-CMS063
2005-09-19 16:24 Smarduch Mario-CMS063
2005-09-19 18:42 ` Hugh Dickins
2005-09-19 19:24 ` Linus Torvalds
2005-09-19 20:14 ` Hugh Dickins
2005-09-19 20:39 ` Linus Torvalds
2005-09-19 21:30 ` Hugh Dickins
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=Pine.LNX.4.58.0509191343540.2553@g5.osdl.org \
--to=torvalds@osdl.org \
--cc=CMS063@motorola.com \
--cc=hugh@veritas.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®