]> Pileus Git - ~andy/linux/commitdiff
do_coredump: Do not take BKL
authorArnd Bergmann <arnd@arndb.de>
Sat, 3 Jul 2010 22:02:25 +0000 (00:02 +0200)
committerFrederic Weisbecker <fweisbec@gmail.com>
Fri, 9 Jul 2010 23:21:49 +0000 (01:21 +0200)
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>
fs/exec.c

index e19de6a80339b3ceeae267283962f271ac6c5e55..2619c767c08912b1487f5b1895a41da4c655f776 100644 (file)
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -28,7 +28,6 @@
 #include <linux/mm.h>
 #include <linux/stat.h>
 #include <linux/fcntl.h>
-#include <linux/smp_lock.h>
 #include <linux/swap.h>
 #include <linux/string.h>
 #include <linux/init.h>
@@ -1891,13 +1890,7 @@ void do_coredump(long signr, int exit_code, struct pt_regs *regs)
         */
        clear_thread_flag(TIF_SIGPENDING);
 
-       /*
-        * lock_kernel() because format_corename() is controlled by sysctl, which
-        * uses lock_kernel()
-        */
-       lock_kernel();
        ispipe = format_corename(corename, signr);
-       unlock_kernel();
 
        if (ispipe) {
                int dump_count;