Re: [PATCH 7/7] driver-core : convert semaphore to mutex in struct class

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alan Stern
Date: Thursday, January 17, 2008 - 12:57 pm

On Thu, 17 Jan 2008, Jarek Poplawski wrote:


That isn't what Dave said above; he said that lockdep produces a single
warning at bootup.  If he did mention anything about one place being
fixed up or lockdep being pleased, it was a while back and I've lost 
track of it.

If I recall correctly the nature of the warning was that a method
routine for one class (called with the class's mutex held) was creating
a second class and locking that class's mutex.  In principle this is
perfectly legal and should be allowed for arbitrary depths of nesting,
even though it is the sort of thing lockdep is currently unable to
handle.


It's not a matter of trust or of false warnings.  People shouldn't 
tolerate any lockdep warnings at all; otherwise they will start to 
ignore the valid ones.

Alan Stern

P.S.: Just because Greg says the code is okay doesn't mean it will 
please lockdep -- it doesn't even mean the code really is okay!  I've 
known Greg to make an occasional mistake.

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

Messages in current thread:
Re: [PATCH 7/7] driver-core : convert semaphore to mutex i ..., Alan Stern, (Thu Jan 17, 12:57 pm)