public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Peter Zijlstra <a.p.zijlstra@chello.nl>
To: Ingo Molnar <mingo@elte.hu>
Cc: Romano Giannetti <romanol@upcomillas.es>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: 2.6.24-rc1 fails with lockup and BUG:
Date: Wed, 24 Oct 2007 18:11:07 +0200	[thread overview]
Message-ID: <1193242267.6914.6.camel@twins> (raw)
In-Reply-To: <20071024155521.GA16690@elte.hu>

[-- Attachment #1: Type: text/plain, Size: 1907 bytes --]

On Wed, 2007-10-24 at 17:55 +0200, Ingo Molnar wrote:
> * Romano Giannetti <romanol@upcomillas.es> wrote:
> 
> > Done. The results are at:
> > 
> > http://www.dea.icai.upcomillas.es/romano/linux/info/2624rc1_2/
> > 
> > in the syslog-after-failed-suspend.txt file. After the failed suspend 
> > (at line 15766) there where the bunch of things in D-state. I have 
> > left the file intact.
> > 
> > At line 17646 there is:
> > 
> > WARNING: at kernel/lockdep.c:2033 trace_hardirqs_on()
> 
> hm, this lockdep warning caused lockdep to turn itself off - hence we 
> wont get to the really interesting warnings. We'll try to come up with a 
> solution for this.

Does this help?

---
Subject: lockdep: invalid irq usage

this function can be called from hardirq context.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
---

Index: linux-2.6-2/kernel/sched_debug.c
===================================================================
--- linux-2.6-2.orig/kernel/sched_debug.c
+++ linux-2.6-2/kernel/sched_debug.c
@@ -80,6 +80,7 @@ print_task(struct seq_file *m, struct rq
 static void print_rq(struct seq_file *m, struct rq *rq, int rq_cpu)
 {
 	struct task_struct *g, *p;
+	unsigned long flags;
 
 	SEQ_printf(m,
 	"\nrunnable tasks:\n"
@@ -88,7 +89,7 @@ static void print_rq(struct seq_file *m,
 	"------------------------------------------------------"
 	"----------------------------------------------------\n");
 
-	read_lock_irq(&tasklist_lock);
+	read_lock_irqsave(&tasklist_lock, flags);
 
 	do_each_thread(g, p) {
 		if (!p->se.on_rq || task_cpu(p) != rq_cpu)
@@ -97,7 +98,7 @@ static void print_rq(struct seq_file *m,
 		print_task(m, rq, p);
 	} while_each_thread(g, p);
 
-	read_unlock_irq(&tasklist_lock);
+	read_unlock_irqrestore(&tasklist_lock, flags);
 }
 
 void print_cfs_rq(struct seq_file *m, int cpu, struct cfs_rq *cfs_rq)


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2007-10-24 16:11 UTC|newest]

Thread overview: 55+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-24  4:19 Linux v2.6.24-rc1 Linus Torvalds
2007-10-24  4:49 ` Willy Tarreau
2007-10-24  5:22 ` Dave Young
2007-10-24  7:23   ` Ingo Molnar
2007-10-24  7:32     ` Ohad Ben-Cohen
2007-10-24  7:33     ` Dave Young
2007-10-24  8:12     ` Jens Axboe
2007-10-24  7:44 ` kvm_main.c:220: error: implicit declaration of function 'smp_call_function_mask' Paolo Ornati
2007-10-24  7:56   ` Jeff Garzik
2007-10-24  8:04 ` Linux v2.6.24-rc1 Ingo Molnar
2007-10-24  8:04 ` Christoph Hellwig
2007-10-24 10:17   ` Linux v2.6.24-rc1, x86 arch code quality, unifications Ingo Molnar
2007-10-24 11:07   ` Linux v2.6.24-rc1 Sam Ravnborg
2007-10-24 12:12     ` Ingo Molnar
2007-10-24 12:21       ` Sam Ravnborg
2007-10-24 21:30       ` [RFC - GIT pull] first step to get rid of x86_64 and i386 dirs Sam Ravnborg
2007-10-24 22:50         ` Randy Dunlap
2007-10-25  6:14           ` Yinghai Lu
2007-10-25 10:56             ` Sam Ravnborg
2007-10-25 15:45               ` Randy Dunlap
2007-10-25 10:18         ` Ingo Molnar
2007-10-25 10:55           ` Sam Ravnborg
2007-10-24  8:10 ` [Git Patch] arch/um/drivers/ubd_kern.c: fix a building error WANG Cong
2007-10-24 11:03   ` Jens Axboe
2007-10-24 11:30 ` [git pull] x86 arch updates Ingo Molnar
2007-10-24 11:48   ` Jeff Garzik
2007-10-24 12:03     ` Ingo Molnar
2007-10-24 13:25 ` 2.6.24-rc1 fails with lockup and BUG: Romano Giannetti
2007-10-24 14:27   ` Ingo Molnar
2007-10-24 15:53     ` Romano Giannetti
2007-10-24 15:55       ` Ingo Molnar
2007-10-24 16:11         ` Peter Zijlstra [this message]
2007-10-26  5:57           ` Romano Giannetti
2007-10-26  6:37             ` 2.6.24-rc1 fails with lockup - /sbin/ifconfig / inet_ioctl() / dev_close() / rtl8169_down() Ingo Molnar
2007-10-26 16:48               ` Stephen Hemminger
2007-10-26 17:56                 ` Ingo Molnar
2007-10-26 18:33                   ` [PATCH] r8169: don't call napi_disable if not doing NAPI Stephen Hemminger
2007-10-26 20:17                     ` Francois Romieu
2007-10-28 22:18                     ` Romano Giannetti
2007-10-29  8:56                     ` Romano Giannetti
2007-10-24 16:44   ` 2.6.24-rc1 fails with lockup and BUG: Joseph Fannin
2007-10-26  5:59     ` Romano Giannetti
2007-10-24 18:19 ` Linux v2.6.24-rc1 Giacomo Catenazzi
2007-12-04 10:08   ` [Bug 9246] On 2.6.24-rc1-gc9927c2b BUG: unable to handle kernel paging request at virtual address 3d15b925 Ingo Molnar
2007-12-04 16:47     ` Giacomo A. Catenazzi
2007-12-04 20:08       ` Rafael J. Wysocki
2007-12-05  9:26         ` Giacomo A. Catenazzi
2007-10-24 19:44 ` [patch] portman2x4.c: fix boot hang Ingo Molnar
2007-10-24 20:12   ` Frans Pop
2007-10-24 21:29     ` Ingo Molnar
2007-10-25  8:16   ` Takashi Iwai
2007-10-25  5:18 ` 2.6.24-rc1 doesn't build Theodore Tso
2007-10-25  5:30   ` Kamalesh Babulal
2007-10-25 12:45 ` Linux v2.6.24-rc1 edz_mania
2007-10-26  5:19 ` [PATCH] Dump filtering supports x86_64 sparsemem(Re: Linux v2.6.24-rc1) Ken'ichi Ohmichi

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=1193242267.6914.6.camel@twins \
    --to=a.p.zijlstra@chello.nl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=romanol@upcomillas.es \
    /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