commit 7b7cae6ae5c543b8e9cc84fc041d9bce36e7b674 Author: Louis Rilling Date: Wed Jun 16 16:20:02 2010 +0200 proc_flush_task() debug diff --git a/kernel/exit.c b/kernel/exit.c index ceffc67..be8cdb0 100644 --- a/kernel/exit.c +++ b/kernel/exit.c @@ -169,6 +169,14 @@ repeat: atomic_dec(&__task_cred(p)->user->processes); rcu_read_unlock(); + if (task_pid(p)->level > 0) { + if (!thread_group_leader(p) || !is_container_init(p)) { + __set_current_state(TASK_UNINTERRUPTIBLE); + schedule_timeout(10 * HZ); + } + printk("release_task: %d/%d\n", p->pid, task_pid(p)->numbers[1].nr); + } + proc_flush_task(p); write_lock_irq(&tasklist_lock);