From: Dave McCracken <dmccr@us.ibm.com>
To: Linux Memory Management <linux-mm@kvack.org>
Subject: Question about locking in mmap.c
Date: Wed, 28 May 2003 10:27:52 -0500 [thread overview]
Message-ID: <33460000.1054135672@baldur.austin.ibm.com> (raw)
It's been my understanding that most vma manipulation is protected by
mm->mmap_sem, and the page table is protected by mm->page_table_lock. I've
been rummaging through mmap.c and see a number of places that take
page_table_lock when the code is about to make changes to the vma chains.
These places are already holding mmap_sem for write.
My question is what is page_table_lock supposed to be protecting against?
Am I wrong that mmap_sem is sufficient to protect against concurrent
changes to the vmas?
Dave McCracken
======================================================================
Dave McCracken IBM Linux Base Kernel Team 1-512-838-3059
dmccr@us.ibm.com T/L 678-3059
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>
next reply other threads:[~2003-05-28 15:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-28 15:27 Dave McCracken [this message]
2003-05-28 16:28 ` Hugh Dickins
2003-05-28 22:10 ` Dave McCracken
2003-05-29 2:10 ` William Lee Irwin III
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=33460000.1054135672@baldur.austin.ibm.com \
--to=dmccr@us.ibm.com \
--cc=linux-mm@kvack.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