Gentoo Archives: gentoo-dev

From: Alexander Holler <holler@××××××××××.de>
To: gentoo-dev@g.o
Subject: [gentoo-dev] kernel with xfs and exited with preempt_count msg
Date: Thu, 06 Jun 2002 13:42:13
Message-Id: 41410000.1023388806@krabat.ahsoftware
1 Hello,
2
3 if anyone else is using xfs and a preemptible kernel and would to get rid
4 of that "exited with preempt_count x" msgs here is a small 'quick and
5 dirty' (1 line) patch.
6
7 see http://www.geocrawler.com/mail/msg.php3?msg_id=8266691&list=35
8
9 ------------------
10 diff -Naur linux-2.4.19-crypto-r7.ori/kernel/exit.c
11 linux-2.4.19-crypto-r7/kernel/exit.c
12 --- linux-2.4.19-crypto-r7.ori/kernel/exit.c 2002-06-06
13 02:28:58.000000000 +0200
14 +++ linux-2.4.19-crypto-r7/kernel/exit.c 2002-06-06
15 19:11:42.000000000 +0200
16 @@ -491,7 +491,8 @@
17 del_timer_sync(&tsk->real_timer);
18
19 if (unlikely(preempt_get_count()))
20 - printk(KERN_ERR "%s[%d] exited with preempt_count %d\n",
21 + if(preempt_get_count()<0)
22 + printk(KERN_ERR "%s[%d] exited with preempt_count
23 %d\n",
24 current->comm, current->pid,
25 preempt_get_count());
26 ------------------
27
28
29 I've used this because I got an error when I've tried to disable the
30 'preemtible Kernel' option.
31
32
33 Alexander
34
35
36 PS: The crypto kernel is missing as choice in the installation instructions
37 on gentoo.org.