From: Alexander Holler <holler@ahsoftware.de>
To: gentoo-dev@gentoo.org
Subject: [gentoo-dev] kernel with xfs and exited with preempt_count msg
Date: Thu, 06 Jun 2002 20:40:06 +0200 [thread overview]
Message-ID: <41410000.1023388806@krabat.ahsoftware> (raw)
Hello,
if anyone else is using xfs and a preemptible kernel and would to get rid
of that "exited with preempt_count x" msgs here is a small 'quick and
dirty' (1 line) patch.
see http://www.geocrawler.com/mail/msg.php3?msg_id=8266691&list=35
------------------
diff -Naur linux-2.4.19-crypto-r7.ori/kernel/exit.c
linux-2.4.19-crypto-r7/kernel/exit.c
--- linux-2.4.19-crypto-r7.ori/kernel/exit.c 2002-06-06
02:28:58.000000000 +0200
+++ linux-2.4.19-crypto-r7/kernel/exit.c 2002-06-06
19:11:42.000000000 +0200
@@ -491,7 +491,8 @@
del_timer_sync(&tsk->real_timer);
if (unlikely(preempt_get_count()))
- printk(KERN_ERR "%s[%d] exited with preempt_count %d\n",
+ if(preempt_get_count()<0)
+ printk(KERN_ERR "%s[%d] exited with preempt_count
%d\n",
current->comm, current->pid,
preempt_get_count());
------------------
I've used this because I got an error when I've tried to disable the
'preemtible Kernel' option.
Alexander
PS: The crypto kernel is missing as choice in the installation instructions
on gentoo.org.
reply other threads:[~2002-06-06 18:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=41410000.1023388806@krabat.ahsoftware \
--to=holler@ahsoftware.de \
--cc=gentoo-dev@gentoo.org \
/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