lkml.org 
[lkml]   [2003]   [Feb]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 13:33    [W:0.036 / U:0.576 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site