Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 16 Sep 2002 18:10:54 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 16 Sep 2002 18:10:54 -0400 Received: from svr-ganmtc-appserv-mgmt.ncf.coxexpress.com ([24.136.46.5]:59921 "EHLO svr-ganmtc-appserv-mgmt.ncf.coxexpress.com") by vger.kernel.org with ESMTP id ; Mon, 16 Sep 2002 18:10:53 -0400 Subject: Re: [PATCH] BUG(): sched.c: Line 944 From: Robert Love To: Linus Torvalds Cc: linux-kernel@vger.kernel.org In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 16 Sep 2002 18:15:52 -0400 Message-Id: <1032214552.1203.55.camel@phantasy> Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 908 Lines: 32 On Mon, 2002-09-16 at 17:41, Linus Torvalds wrote: > Ok. Let's just make the masking explicit in in_atomic() then, like you > suggest: OK. But, ugh, more fun: we preempt_disable() in do_exit(). Every exiting task hits the test. My syslog is huge. At least for now, can we please revert the check to in_interrupt() ? Robert Love diff -urN linux-2.5.35/kernel/sched.c linux/kernel/sched.c --- linux-2.5.35/kernel/sched.c Sun Sep 15 22:18:24 2002 +++ linux/kernel/sched.c Mon Sep 16 18:17:06 2002 @@ -940,7 +940,7 @@ struct list_head *queue; int idx; - if (unlikely(in_atomic())) + if (unlikely(in_interrupt())) BUG(); #if CONFIG_DEBUG_HIGHMEM - 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/