Re: doublefault debugging (was Re: Linux v2.5.62 --- spontaneous reboots)

From: Ingo Molnar (mingo@elte.hu)
Date: Thu Feb 20 2003 - 14:57:28 EST


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/



This archive was generated by hypermail 2b29 : Sun Feb 23 2003 - 22:00:30 EST