Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 1e3fa25f authored by Oleg Nesterov's avatar Oleg Nesterov Committed by Andrew Morton
Browse files

coredump: simplify zap_process()

After commit 0258b5fd ("coredump: Limit coredumps to a single thread
group") zap_process() doesn't need the "task_struct *start" arg,
zap_threads() can pass "signal_struct *signal" instead.

This simplifies the code and allows to use __for_each_thread() which
is slightly more efficient.

Link: https://lkml.kernel.org/r/20240625140311.GA20787@redhat.com


Signed-off-by: default avatarOleg Nesterov <oleg@redhat.com>
Cc: Christian Brauner <brauner@kernel.org>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 2a49c8b6
Branches
Tags
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment