mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Robert Love <rml@tech9.net>
To: vda@port.imtp.ilyichevsk.odessa.ua, torvalds@transmeta.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: error : preempt_count 1
Date: 14 May 2002 09:24:57 -0700	[thread overview]
Message-ID: <1021393499.942.24.camel@sinai> (raw)
In-Reply-To: <200205141143.g4EBhEY09631@Port.imtp.ilyichevsk.odessa.ua>

On Tue, 2002-05-14 at 09:45, Denis Vlasenko wrote:

> On 13 May 2002 14:18, Robert Love wrote:
>
> > Absolutely nothing bad.  It is a debugging check to catch bad code that
> > does funny things with locks.  Ideally, every program should call unlock
> > for each instance it called lock - balancing everything out and giving a
> > preempt_count of zero.
> 
> > Some code in the kernel, knowing it is shutting down, does not bother to
> > drop any held locks and subsequently you see that message.
> 
> > Since it is triggering false positives, I will remove it eventually.
> 
> I'd say don't remove it, just omit the 'error:' part - this will
> reduce panic mails on the subject.
> 
> > For now it is incredibly useful for catching real problems.  And the
> > above, while harmless, could be fixed for "cleanliness" concerns.

Not a bad idea ;-)

For now this will hopefully curb the inquiries - I can still remove it
later when I am confident that the core code is sane and if people still
whine.

Thanks,

	Robert Love

--- linux-2.5.15/kernel/exit.c	Sun May  5 20:37:59 2002
+++ linux/kernel/exit.c	Tue May 14 09:22:52 2002
@@ -526,7 +526,7 @@
 	del_timer_sync(&tsk->real_timer);
 
 	if (unlikely(preempt_get_count()))
-		printk(KERN_ERR "error: %s[%d] exited with preempt_count %d\n",
+		printk(KERN_ERR "%s[%d] exited with preempt_count %d\n",
 				current->comm, current->pid,
 				preempt_get_count());
 


      reply	other threads:[~2002-05-14 16:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-13  6:25 Oliver Kowalke
2002-05-13 16:18 ` Robert Love
2002-05-14 16:45   ` Denis Vlasenko
2002-05-14 16:24     ` Robert Love [this message]

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=1021393499.942.24.camel@sinai \
    --to=rml@tech9.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    --cc=vda@port.imtp.ilyichevsk.odessa.ua \
    /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

all inboxes | Powered by JetHome®