Re: 2.6.24-rc7 lockdep warning when poweroff

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Johannes Berg <johannes@...>
Cc: Peter Zijlstra <peterz@...>, Linus Torvalds <torvalds@...>, Linux Kernel Mailing List <linux-kernel@...>, Ingo Molnar <mingo@...>
Date: Monday, January 14, 2008 - 9:24 pm

On Tue, Jan 15, 2008 at 08:31:48AM +0800, Dave Young wrote:

Not sure right or not, the following patch fixed the problem:

diff -upr linux/include/linux/workqueue.h linux.new/include/linux/workqueue.h
--- linux/include/linux/workqueue.h	2008-01-15 08:49:08.000000000 +0800
+++ linux.new/include/linux/workqueue.h	2008-01-15 08:49:42.000000000 +0800
@@ -154,7 +154,7 @@ __create_workqueue_key(const char *name,
 #ifdef CONFIG_LOCKDEP
 #define __create_workqueue(name, singlethread, freezeable)	\
 ({								\
-	static struct lock_class_key __key;			\
+	struct lock_class_key __key;			\
 								\
 	__create_workqueue_key((name), (singlethread),		\
 			       (freezeable), &__key);		\
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
2.6.24-rc7 lockdep warning when poweroff, Dave Young, (Mon Jan 14, 5:04 am)
Re: 2.6.24-rc7 lockdep warning when poweroff, Peter Zijlstra, (Mon Jan 14, 5:24 am)
Re: 2.6.24-rc7 lockdep warning when poweroff, Johannes Berg, (Mon Jan 14, 6:35 am)
Re: 2.6.24-rc7 lockdep warning when poweroff, Peter Zijlstra, (Mon Jan 14, 6:41 am)
Re: 2.6.24-rc7 lockdep warning when poweroff, Johannes Berg, (Mon Jan 14, 6:51 am)
Re: 2.6.24-rc7 lockdep warning when poweroff, Johannes Berg, (Tue Jan 15, 6:41 am)
Re: 2.6.24-rc7 lockdep warning when poweroff, Peter Zijlstra, (Tue Jan 15, 8:21 am)
Re: 2.6.24-rc7 lockdep warning when poweroff, Johannes Berg, (Tue Jan 15, 7:54 pm)
Re: 2.6.24-rc7 lockdep warning when poweroff, Johannes Berg, (Tue Jan 15, 8:39 am)
Re: 2.6.24-rc7 lockdep warning when poweroff, Peter Zijlstra, (Tue Jan 15, 8:47 am)
Re: 2.6.24-rc7 lockdep warning when poweroff, Ingo Molnar, (Wed Jan 16, 4:11 am)
Re: 2.6.24-rc7 lockdep warning when poweroff, Dave Young, (Mon Jan 14, 8:31 pm)
Re: 2.6.24-rc7 lockdep warning when poweroff, Dave Young, (Mon Jan 14, 9:24 pm)
Re: 2.6.24-rc7 lockdep warning when poweroff, Peter Zijlstra, (Tue Jan 15, 4:42 am)