diff options
author | Davidlohr Bueso <dave@stgolabs.net> | 2015-04-16 12:49:15 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-17 09:04:11 -0400 |
commit | fd89a65f155fa890c0130139dfb91684d6da4cfb (patch) | |
tree | c0bc5d80caeaa4f7863205acb59c43db66f57da9 /security | |
parent | 11163348a23cdbcdca5fb42485418e75f8566a5c (diff) | |
download | linux-fd89a65f155fa890c0130139dfb91684d6da4cfb.tar.gz linux-fd89a65f155fa890c0130139dfb91684d6da4cfb.tar.bz2 linux-fd89a65f155fa890c0130139dfb91684d6da4cfb.zip |
powerpc/oprofile: reduce mmap_sem hold for exe_file
In the future mm->exe_file will be done without mmap_sem serialization,
thus isolate and reorganize the related code to make the transition
easier. Good users will, make use of the more standard get_mm_exe_file(),
requiring only holding the mmap_sem to read the value, and relying on
reference counting to make sure that the exe file won't dissappear
underneath us while getting the dcookie.
Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Robert Richter <rric@kernel.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions