Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 13 Sep 2002 07:51:11 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 13 Sep 2002 07:51:11 -0400 Received: from pD952AD04.dip.t-dialin.net ([217.82.173.4]:7660 "EHLO hawkeye.luckynet.adm") by vger.kernel.org with ESMTP id ; Fri, 13 Sep 2002 07:51:10 -0400 Date: Fri, 13 Sep 2002 05:56:05 -0600 (MDT) From: Thunder from the hill X-X-Sender: thunder@hawkeye.luckynet.adm To: Robert Love cc: Ingo Molnar , Steven Cole , Linus Torvalds , , Andrew Morton , Steven Cole Subject: Re: [PATCH] kernel BUG at sched.c:944! only with CONFIG_PREEMPT=y] In-Reply-To: <1031902825.4429.130.camel@phantasy> Message-ID: X-Location: Dorndorf/Steudnitz; Germany 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: 911 Lines: 28 Hi, On 13 Sep 2002, Robert Love wrote: > On Fri, 2002-09-13 at 03:36, Robert Love wrote: > Actually, looking at this again, we probably want to still BUG() if > in_interrupt() but _not_ if in_atomic(). - if (unlikely(in_atomic())) - BUG(); + if (unlikely((in_interrupt() || (!in_atomic())) && preempt_count() != PREEMPT_ACTIVE)) { + printk(KERN_ERROR "schedule() called while non-atomic, or in interrupt!\n"); + show_stack(NULL); + } ? Thunder -- --./../...-/. -.--/---/..-/.-./..././.-../..-. .---/..-/.../- .- --/../-./..-/-/./--..-- ../.----./.-../.-.. --./../...-/. -.--/---/..- .- -/---/--/---/.-./.-./---/.--/.-.-.- --./.-/-.../.-./.././.-../.-.-.- - 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/