From: Davidlohr Bueso Date: Thu, 16 Apr 2015 19:49:15 +0000 (-0700) Subject: powerpc/oprofile: reduce mmap_sem hold for exe_file X-Git-Tag: omap-for-v4.1/fixes-rc1~115^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd89a65f155fa890c0130139dfb91684d6da4cfb;p=pandora-kernel.git 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 Cc: Arnd Bergmann Cc: Robert Richter Cc: Benjamin Herrenschmidt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed