Lines Matching refs:reaper
585 struct task_struct *reaper = pid_ns->child_reaper; in find_child_reaper() local
588 if (likely(reaper != father)) in find_child_reaper()
589 return reaper; in find_child_reaper()
591 reaper = find_alive_thread(father); in find_child_reaper()
592 if (reaper) { in find_child_reaper()
593 pid_ns->child_reaper = reaper; in find_child_reaper()
594 return reaper; in find_child_reaper()
620 struct task_struct *thread, *reaper; in find_new_reaper() local
636 for (reaper = father->real_parent; in find_new_reaper()
637 task_pid(reaper)->level == ns_level; in find_new_reaper()
638 reaper = reaper->real_parent) { in find_new_reaper()
639 if (reaper == &init_task) in find_new_reaper()
641 if (!reaper->signal->is_child_subreaper) in find_new_reaper()
643 thread = find_alive_thread(reaper); in find_new_reaper()
687 struct task_struct *p, *t, *reaper; in forget_original_parent() local
693 reaper = find_child_reaper(father, dead); in forget_original_parent()
697 reaper = find_new_reaper(father, reaper); in forget_original_parent()
700 RCU_INIT_POINTER(t->real_parent, reaper); in forget_original_parent()
713 if (!same_thread_group(reaper, father)) in forget_original_parent()
716 list_splice_tail_init(&father->children, &reaper->children); in forget_original_parent()