Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 311123
b: refs/heads/master
c: 50d75f8
h: refs/heads/master
i:
  311121: b17e3af
  311119: bfd4ecb
v: v3
  • Loading branch information
Oleg Nesterov authored and Linus Torvalds committed Jun 20, 2012
1 parent 54c9c8e commit 628e717
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6347e90091041e34bea625370794c92f4ce71228
refs/heads/master: 50d75f8daead8a1f850c40a3b6c6575ab19b48cf
10 changes: 2 additions & 8 deletions trunk/kernel/exit.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ static void exit_mm(struct task_struct * tsk);
static void __unhash_process(struct task_struct *p, bool group_dead)
{
nr_threads--;
detach_pid(p, PIDTYPE_PID);
if (group_dead) {
detach_pid(p, PIDTYPE_PGID);
detach_pid(p, PIDTYPE_SID);
Expand All @@ -78,13 +79,12 @@ static void __unhash_process(struct task_struct *p, bool group_dead)
if (IS_ENABLED(CONFIG_PID_NS)) {
struct task_struct *parent = p->real_parent;

if ((task_active_pid_ns(p)->child_reaper == parent) &&
if ((task_active_pid_ns(parent)->child_reaper == parent) &&
list_empty(&parent->children) &&
(parent->flags & PF_EXITING))
wake_up_process(parent);
}
}
detach_pid(p, PIDTYPE_PID);
list_del_rcu(&p->thread_group);
}

Expand Down Expand Up @@ -732,12 +732,6 @@ static struct task_struct *find_new_reaper(struct task_struct *father)

zap_pid_ns_processes(pid_ns);
write_lock_irq(&tasklist_lock);
/*
* We can not clear ->child_reaper or leave it alone.
* There may by stealth EXIT_DEAD tasks on ->children,
* forget_original_parent() must move them somewhere.
*/
pid_ns->child_reaper = init_pid_ns.child_reaper;
} else if (father->signal->has_child_subreaper) {
struct task_struct *reaper;

Expand Down

0 comments on commit 628e717

Please sign in to comment.