Messages in this thread Patch in this message | ![/](/images/icornerl.gif) | | Date | Thu, 20 Feb 2003 20:57:28 +0100 (CET) | From | Ingo Molnar <> | Subject | Re: doublefault debugging (was Re: Linux v2.5.62 --- spontaneous reboots) |
| |
ie. something like:
(untested yet.)
--- linux/kernel/exit.c.orig2 2003-02-20 21:55:56.000000000 +0100 +++ linux/kernel/exit.c 2003-02-20 21:56:02.000000000 +0100 @@ -66,9 +66,6 @@ BUG_ON(p->state < TASK_ZOMBIE); - if (p != current) - wait_task_inactive(p); - atomic_dec(&p->user->processes); security_task_free(p); free_uid(p->user); --- linux/kernel/fork.c.orig2 2003-02-20 21:55:59.000000000 +0100 +++ linux/kernel/fork.c 2003-02-20 21:57:07.000000000 +0100 @@ -75,6 +75,8 @@ void __put_task_struct(struct task_struct *tsk) { if (tsk != current) { + if (tsk != current) + wait_task_inactive(tsk); free_thread_info(tsk->thread_info); kmem_cache_free(task_struct_cachep,tsk); } else { - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| ![\](/images/icornerr.gif) |