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: Dave Young <hidave.darkstar@...>, Linus Torvalds <torvalds@...>, Linux Kernel Mailing List <linux-kernel@...>, Ingo Molnar <mingo@...>, Oleg Nesterov <oleg@...>
Date: Tuesday, January 15, 2008 - 8:21 am

On Tue, 2008-01-15 at 11:41 +0100, Johannes Berg wrote:

I'm not sure the single threadedness of a workqueue matters here.


Strictly speaking one can do that, although I would recommend against it
- it leads to confusion as to which lock got into trouble when looking
at lockdep/stat output.


Yeah.


Indeed, and also using a different key allows the workqueue to have
different lock dependencies as well. The trouble is, lockdep works at
the class level, a class with multiple names just doesn't make sense,
and reporting will get it wrong (although it may appear to work
correctly in the trivial cases).


Right, that would require a new key for each instance.


Tssk :-)


The patch looks ok, one important thing to note is that it means that
all workqueues instantiated by the same __create_workqueue() call-site
share lock dependency chains - I'm unsure if that might get us into
trouble or not.


Me and Ingo :-)


--
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)