diff options
author | Oleg Nesterov <oleg@redhat.com> | 2014-12-10 15:45:30 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-10 17:41:10 -0800 |
commit | 2831096e21503897ee474c23131c3feb8db0ffb1 (patch) | |
tree | ce85582dca41140cf7bea54d4051aa50fcc4fe13 /kernel/ptrace.c | |
parent | 57a059187d5ba5592e36c6f23d046bc37616f346 (diff) | |
download | talos-obmc-linux-2831096e21503897ee474c23131c3feb8db0ffb1.tar.gz talos-obmc-linux-2831096e21503897ee474c23131c3feb8db0ffb1.zip |
exit: reparent: cleanup the usage of reparent_leader()
1. Now that reparent_leader() doesn't abuse ->sibling we can shift
list_move_tail() from reparent_leader() to forget_original_parent()
and turn it into a single list_splice_tail_init(). This also makes
BUG_ON(!list_empty()) and list_for_each_entry_safe() unnecessary.
2. This also allows to shift the same_thread_group() check, it looks
a bit more clear in the caller.
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: Aaron Tomlin <atomlin@redhat.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>,
Cc: Sterling Alexander <stalexan@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Roland McGrath <roland@hack.frob.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/ptrace.c')
0 files changed, 0 insertions, 0 deletions