aboutsummaryrefslogtreecommitdiffstats
path: root/fs/exec.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2010-07-03 18:02:25 -0400
committerFrederic Weisbecker <fweisbec@gmail.com>2010-07-09 19:21:49 -0400
commit5f202bd5ca64132cdd7f186656bc0221f257733d (patch)
treee53eac24bf18052955565370f3327da088fa1be7 /fs/exec.c
parent5e3d20a68f63fc5a310687d81956c3b96e488b84 (diff)
do_coredump: Do not take BKL
core_pattern is not actually protected and hasn't been ever since we introduced procfs support for sysctl -- a _long_ time. Don't take it here either. Also nothing inside do_coredump appears to require bkl protection. Signed-off-by: Arnd Bergmann <arnd@arndb.de> [ remove smp_lock.h headers ] Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Diffstat (limited to 'fs/exec.c')
-rw-r--r--fs/exec.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/exec.c b/fs/exec.c
index e19de6a80339..2619c767c089 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -28,7 +28,6 @@
28#include <linux/mm.h> 28#include <linux/mm.h>
29#include <linux/stat.h> 29#include <linux/stat.h>
30#include <linux/fcntl.h> 30#include <linux/fcntl.h>
31#include <linux/smp_lock.h>
32#include <linux/swap.h> 31#include <linux/swap.h>
33#include <linux/string.h> 32#include <linux/string.h>
34#include <linux/init.h> 33#include <linux/init.h>
@@ -1891,13 +1890,7 @@ void do_coredump(long signr, int exit_code, struct pt_regs *regs)
1891 */ 1890 */
1892 clear_thread_flag(TIF_SIGPENDING); 1891 clear_thread_flag(TIF_SIGPENDING);
1893 1892
1894 /*
1895 * lock_kernel() because format_corename() is controlled by sysctl, which
1896 * uses lock_kernel()
1897 */
1898 lock_kernel();
1899 ispipe = format_corename(corename, signr); 1893 ispipe = format_corename(corename, signr);
1900 unlock_kernel();
1901 1894
1902 if (ispipe) { 1895 if (ispipe) {
1903 int dump_count; 1896 int dump_count;