diff options
author | Oleg Nesterov <oleg@redhat.com> | 2013-04-30 18:28:16 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-30 20:04:06 -0400 |
commit | 079148b919d0c58b796f9ae98bdb53028dbcd5e7 (patch) | |
tree | b2d44cfd18794533709b053d6669606b13173fe2 /fs/binfmt_elf.c | |
parent | 528f827ee0bb508af5c9466562f474675540473e (diff) |
coredump: factor out the setting of PF_DUMPCORE
Cleanup. Every linux_binfmt->core_dump() sets PF_DUMPCORE, move this into
zap_threads() called by do_coredump().
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Mandeep Singh Baines <msb@chromium.org>
Cc: Neil Horman <nhorman@redhat.com>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/binfmt_elf.c')
-rw-r--r-- | fs/binfmt_elf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index e32344bdfab1..34a9771eaa6c 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c | |||
@@ -2092,8 +2092,7 @@ static int elf_core_dump(struct coredump_params *cprm) | |||
2092 | goto cleanup; | 2092 | goto cleanup; |
2093 | 2093 | ||
2094 | has_dumped = 1; | 2094 | has_dumped = 1; |
2095 | current->flags |= PF_DUMPCORE; | 2095 | |
2096 | |||
2097 | fs = get_fs(); | 2096 | fs = get_fs(); |
2098 | set_fs(KERNEL_DS); | 2097 | set_fs(KERNEL_DS); |
2099 | 2098 | ||