Re: linux-next: PowerPC WARN_ON_ONCE() after merge of the final tree (tip related)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Frederic Weisbecker
Date: Thursday, April 15, 2010 - 6:00 am

On Thu, Apr 15, 2010 at 08:49:40AM +0200, Ingo Molnar wrote:


In this case, I guess the following fix should be sufficient?
I'm going to test it and provide a sane changelog.


diff --git a/kernel/lockdep.c b/kernel/lockdep.c
index 78325f8..65d4336 100644
--- a/kernel/lockdep.c
+++ b/kernel/lockdep.c
@@ -2298,7 +2298,11 @@ void trace_hardirqs_on_caller(unsigned long ip)
 		return;
 
 	if (unlikely(curr->hardirqs_enabled)) {
+		unsigned long flags;
+
+		raw_local_irq_save(flags);
 		debug_atomic_inc(redundant_hardirqs_on);
+		raw_local_irq_restore(flags);
 		return;
 	}
 	/* we'll do an OFF -> ON transition: */

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
linux-next: boot failure after merge of the final tree (ti ..., Stephen Rothwell, (Wed Apr 14, 11:12 pm)
Re: linux-next: boot failure after merge of the final tree ..., Benjamin Herrenschmidt, (Wed Apr 14, 11:48 pm)
Re: linux-next: PowerPC WARN_ON_ONCE() after merge of the ..., Stephen Rothwell, (Thu Apr 15, 3:04 am)
Re: linux-next: PowerPC WARN_ON_ONCE() after merge of the ..., Frederic Weisbecker, (Thu Apr 15, 6:00 am)
[PATCH] lockdep: Fix redundant_hardirqs_on incremented wit ..., Frederic Weisbecker, (Thu Apr 15, 6:37 am)
Re: linux-next: PowerPC WARN_ON_ONCE() after merge of the ..., Frederic Weisbecker, (Thu Apr 15, 10:15 am)
Re: linux-next: PowerPC WARN_ON_ONCE() after merge of the ..., Frederic Weisbecker, (Thu Apr 15, 10:24 am)
Re: linux-next: PowerPC WARN_ON_ONCE() after merge of the ..., Benjamin Herrenschmidt, (Thu Apr 15, 6:51 pm)
Re: linux-next: PowerPC WARN_ON_ONCE() after merge of the ..., Benjamin Herrenschmidt, (Thu Apr 15, 6:56 pm)
Re: linux-next: PowerPC WARN_ON_ONCE() after merge of the ..., Frederic Weisbecker, (Fri Apr 16, 5:32 am)
Re: [PATCH] lockdep: Fix redundant_hardirqs_on incremented ..., Stephen Rothwell, (Tue Apr 27, 12:32 am)
Re: [PATCH] lockdep: Fix redundant_hardirqs_on incremented ..., Frederic Weisbecker, (Tue Apr 27, 11:07 am)
Re: [PATCH] lockdep: Fix redundant_hardirqs_on incremented ..., Stephen Rothwell, (Wed Apr 28, 12:12 am)