]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc/oprofile: reduce mmap_sem hold for exe_file
authorDavidlohr Bueso <dave@stgolabs.net>
Tue, 7 Apr 2015 23:57:05 +0000 (09:57 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 9 Apr 2015 09:07:11 +0000 (19:07 +1000)
commitdb5f16ad8342af4c4c47a5f2d1d20cf13e3d03b0
treefe812a7a362bd560426d27556257427067f13bf4
parent6bd50e063abbe6f5eabcf564d376767689c18cd9
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>
arch/powerpc/oprofile/cell/spu_task_sync.c