linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Question about locking in mmap.c
@ 2003-05-28 15:27 Dave McCracken
  2003-05-28 16:28 ` Hugh Dickins
  2003-05-28 22:10 ` Dave McCracken
  0 siblings, 2 replies; 4+ messages in thread
From: Dave McCracken @ 2003-05-28 15:27 UTC (permalink / raw)
  To: Linux Memory Management

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>

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

end of thread, other threads:[~2003-05-29  2:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-28 15:27 Question about locking in mmap.c Dave McCracken
2003-05-28 16:28 ` Hugh Dickins
2003-05-28 22:10 ` Dave McCracken
2003-05-29  2:10   ` William Lee Irwin III

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox