Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030289AbVKHEfK (ORCPT ); Mon, 7 Nov 2005 23:35:10 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030293AbVKHEfK (ORCPT ); Mon, 7 Nov 2005 23:35:10 -0500 Received: from mailout1.vmware.com ([65.113.40.130]:32787 "EHLO mailout1.vmware.com") by vger.kernel.org with ESMTP id S1030289AbVKHEfJ (ORCPT ); Mon, 7 Nov 2005 23:35:09 -0500 Date: Mon, 7 Nov 2005 20:35:07 -0800 Message-Id: <200511080435.jA84Z7ZZ009927@zach-dev.vmware.com> Subject: [PATCH 15/21] i386 Deprecate useless bug From: Zachary Amsden To: Andrew Morton , Chris Wright , Linus Torvalds , Linux Kernel Mailing List , Virtualization Mailing List , "H. Peter Anvin" , Zwane Mwaikambo , Martin Bligh , Pratap Subrahmanyam , Christopher Li , "Eric W. Biederman" , Ingo Molnar , Zachary Amsden , Zachary Amsden X-OriginalArrivalTime: 08 Nov 2005 04:35:07.0498 (UTC) FILETIME=[CBD70CA0:01C5E41D] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1261 Lines: 33 Remove the "temporary debugging check" which has managed to live for quite some time, and is clearly unneeded. The mm can never be live at this point, so clearly checking the LDT in the mm->context is redundant as well. Signed-off-by: Zachary Amsden Index: linux-2.6.14-zach-work/arch/i386/kernel/process.c =================================================================== --- linux-2.6.14-zach-work.orig/arch/i386/kernel/process.c 2005-10-27 17:02:08.000000000 -0700 +++ linux-2.6.14-zach-work/arch/i386/kernel/process.c 2005-11-05 00:28:06.000000000 -0800 @@ -417,17 +417,7 @@ void flush_thread(void) void release_thread(struct task_struct *dead_task) { - if (dead_task->mm) { - // temporary debugging check - if (dead_task->mm->context.size) { - printk("WARNING: dead process %8s still has LDT? <%p/%d>\n", - dead_task->comm, - dead_task->mm->context.ldt, - dead_task->mm->context.size); - BUG(); - } - } - + BUG_ON(dead_task->mm); release_vm86_irqs(dead_task); } - 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/