Commit 5f202bd5ca64132cdd7f186656bc0221f257733d
Committed by
Frederic Weisbecker
1 parent
5e3d20a68f
Exists in
master
and in
7 other branches
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>
Showing 1 changed file with 0 additions and 7 deletions Side-by-side Diff
fs/exec.c
... | ... | @@ -28,7 +28,6 @@ |
28 | 28 | #include <linux/mm.h> |
29 | 29 | #include <linux/stat.h> |
30 | 30 | #include <linux/fcntl.h> |
31 | -#include <linux/smp_lock.h> | |
32 | 31 | #include <linux/swap.h> |
33 | 32 | #include <linux/string.h> |
34 | 33 | #include <linux/init.h> |
35 | 34 | |
... | ... | @@ -1891,13 +1890,7 @@ |
1891 | 1890 | */ |
1892 | 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 | 1893 | ispipe = format_corename(corename, signr); |
1900 | - unlock_kernel(); | |
1901 | 1894 | |
1902 | 1895 | if (ispipe) { |
1903 | 1896 | int dump_count; |