Re: [PATCH 01/12] Use mutex instead of semaphore in driver core

Jiri Kosina
2008-01-08T16:57:17Z

On Sat, 29 Dec 2007, David Brownell wrote:

> > There's no way to remove these, which means there's no way to prevent
> > lockdep from issuing a warning.
> There may be no *efficient* way to do that. If it tracked every lock
> individually these false alarms could go away; but that would increase
> the overhead to create and destroy such locks too.

And it would also do something completely different compared to what
lockdep is doing now.

The point is being able to spot the potential deadlock before it actually
happens. If you track individual instances instead of classess, you are
out of luck with this.

--
Jiri Kosina