]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] mm: dup_mmap down new mmap_sem
authorHugh Dickins <hugh@veritas.com>
Sun, 30 Oct 2005 01:16:08 +0000 (18:16 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 30 Oct 2005 04:40:38 +0000 (21:40 -0700)
commit0f46732450d6287e1878844ad5ca55b9c2c17e0b
tree2041a36a13bdd8b096dfbf52b63a87739ea97d6b
parent2f577cdf7402d1bee7af3e6a4783e51446732d39
[PATCH] mm: dup_mmap down new mmap_sem

One anomaly remains from when Andrea rationalized the responsibilities of
mmap_sem and page_table_lock: in dup_mmap we add vmas to the child holding its
page_table_lock, but not the mmap_sem which normally guards the vma list and
rbtree.  Which could be an issue for unuse_mm: though since it just walks down
the list (today with page_table_lock, tomorrow not), it's probably okay.  Will
need a memory barrier?  Oh, keep it simple, Nick and I agreed, no harm in
taking child's mmap_sem here.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/fork.c