]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
powerpc/oprofile: reduce mmap_sem hold for exe_file
authorDavidlohr Bueso <dave@stgolabs.net>
Thu, 16 Apr 2015 19:49:15 +0000 (12:49 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 17 Apr 2015 13:04:11 +0000 (09:04 -0400)
commitfd89a65f155fa890c0130139dfb91684d6da4cfb
treec0bc5d80caeaa4f7863205acb59c43db66f57da9
parent11163348a23cdbcdca5fb42485418e75f8566a5c
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>
arch/powerpc/oprofile/cell/spu_task_sync.c