* [gentoo-dev] kernel with xfs and exited with preempt_count msg
@ 2002-06-06 18:40 Alexander Holler
0 siblings, 0 replies; only message in thread
From: Alexander Holler @ 2002-06-06 18:40 UTC (permalink / raw
To: gentoo-dev
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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-06-06 18:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-06 18:40 [gentoo-dev] kernel with xfs and exited with preempt_count msg Alexander Holler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox