public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Robert Love <rml@tech9.net>
To: Robert Love <rml@tech9.net>
Cc: Ingo Molnar <mingo@elte.hu>, Steven Cole <elenstev@mesatop.com>,
	Linus Torvalds <torvalds@transmeta.com>,
	linux-kernel@vger.kernel.org, Andrew Morton <akpm@digeo.com>,
	Steven Cole <scole@lanl.gov>
Subject: Re: [PATCH] kernel BUG at sched.c:944! only with CONFIG_PREEMPT=y]
Date: 13 Sep 2002 03:40:25 -0400	[thread overview]
Message-ID: <1031902825.4429.130.camel@phantasy> (raw)
In-Reply-To: <1031902595.4433.125.camel@phantasy>

On Fri, 2002-09-13 at 03:36, Robert Love wrote:

> -	if (unlikely(in_atomic()))
> -		BUG();
> +	if (unlikely(in_atomic() && preempt_count() != PREEMPT_ACTIVE)) {
> +		printk(KERN_ERROR "schedule() called while non-atomic!\n");
> +		show_stack(NULL);
> +	}

Actually, looking at this again, we probably want to still BUG() if
in_interrupt() but _not_ if in_atomic().

	Robert Love


  reply	other threads:[~2002-09-13  7:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3D80EF3F.D82B9CB9@digeo.com>
     [not found] ` <1031862049.2799.402.camel@spc9.esa.lanl.gov>
2002-09-12 20:35   ` [PATCH] kernel BUG at sched.c:944! only with CONFIG_PREEMPT=y] Robert Love
2002-09-12 20:44     ` Ingo Molnar
2002-09-12 20:45       ` Robert Love
2002-09-12 20:58         ` Steven Cole
2002-09-13  7:19         ` Ingo Molnar
2002-09-13  7:36           ` Robert Love
2002-09-13  7:40             ` Robert Love [this message]
2002-09-13 11:56               ` Thunder from the hill
2002-09-12 21:08       ` Andrew Morton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1031902825.4429.130.camel@phantasy \
    --to=rml@tech9.net \
    --cc=akpm@digeo.com \
    --cc=elenstev@mesatop.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=scole@lanl.gov \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox