Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 20 Feb 2003 14:50:29 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 20 Feb 2003 14:50:29 -0500 Received: from mx1.elte.hu ([157.181.1.137]:59547 "HELO mx1.elte.hu") by vger.kernel.org with SMTP id ; Thu, 20 Feb 2003 14:50:28 -0500 Date: Thu, 20 Feb 2003 20:57:28 +0100 (CET) From: Ingo Molnar Reply-To: Ingo Molnar To: Linus Torvalds Cc: Zwane Mwaikambo , Chris Wedgwood , Kernel Mailing List , "Martin J. Bligh" , William Lee Irwin III Subject: Re: doublefault debugging (was Re: Linux v2.5.62 --- spontaneous reboots) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 970 Lines: 34 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/