Lines Matching refs:reaper
573 struct task_struct *reaper = pid_ns->child_reaper; in find_child_reaper() local
576 if (likely(reaper != father)) in find_child_reaper()
577 return reaper; in find_child_reaper()
579 reaper = find_alive_thread(father); in find_child_reaper()
580 if (reaper) { in find_child_reaper()
581 pid_ns->child_reaper = reaper; in find_child_reaper()
582 return reaper; in find_child_reaper()
608 struct task_struct *thread, *reaper; in find_new_reaper() local
624 for (reaper = father->real_parent; in find_new_reaper()
625 task_pid(reaper)->level == ns_level; in find_new_reaper()
626 reaper = reaper->real_parent) { in find_new_reaper()
627 if (reaper == &init_task) in find_new_reaper()
629 if (!reaper->signal->is_child_subreaper) in find_new_reaper()
631 thread = find_alive_thread(reaper); in find_new_reaper()
675 struct task_struct *p, *t, *reaper; in forget_original_parent() local
681 reaper = find_child_reaper(father, dead); in forget_original_parent()
685 reaper = find_new_reaper(father, reaper); in forget_original_parent()
688 RCU_INIT_POINTER(t->real_parent, reaper); in forget_original_parent()
701 if (!same_thread_group(reaper, father)) in forget_original_parent()
704 list_splice_tail_init(&father->children, &reaper->children); in forget_original_parent()