mm: rcu-protected get_mm_exe_file()
authorKonstantin Khlebnikov <[email protected]>
Thu, 16 Apr 2015 19:47:56 +0000 (12:47 -0700)
committerLinus Torvalds <[email protected]>
Fri, 17 Apr 2015 13:04:07 +0000 (09:04 -0400)
commit90f31d0ea88880f780574f3d0bb1a227c4c66ca3
tree5367f83919939a2d83888b3a1c48e5ba06e0f574
parent0ec62afeb143a34ce78143cf442f879ef68382f7
mm: rcu-protected get_mm_exe_file()

This patch removes mm->mmap_sem from mm->exe_file read side.
Also it kills dup_mm_exe_file() and moves exe_file duplication into
dup_mmap() where both mmap_sems are locked.

[[email protected]: fix comment typo]
Signed-off-by: Konstantin Khlebnikov <[email protected]>
Cc: Davidlohr Bueso <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Cc: "Paul E. McKenney" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/file.c
include/linux/fs.h
include/linux/mm_types.h
kernel/fork.c