[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20080118083941.GD1703@ff.dom.local>
Date: Fri, 18 Jan 2008 09:39:41 +0100
From: Jarek Poplawski <jarkao2@...il.com>
To: Dave Young <hidave.darkstar@...il.com>
Cc: Alan Stern <stern@...land.harvard.edu>, Greg KH <gregkh@...e.de>,
stefanr@...6.in-berlin.de, David Brownell <david-b@...bell.net>,
Kernel development list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 7/7] driver-core : convert semaphore to mutex in struct
class
On Fri, Jan 18, 2008 at 09:00:34AM +0100, Jarek Poplawski wrote:
> On Fri, Jan 18, 2008 at 09:42:25AM +0800, Dave Young wrote:
> ...
> > After digging the class usage code again, I found that the only
> > possible double lock place is the class_interface_register/unregister
> > in which the class_device api could be called.
>
> OK, but currently after using mostly:
> mutex_lock(&parent_class)
>
> and once:
> mutex_lock_nested(&parent_class, SINGLE_DEPTH_NESTING)
>
> lockdep mostly thinks these parent classes are 2 different objects,
> with only 2 possible levels of nesting, so this parent_class has
> to have wrong name (2 parents can't be locked from the same thread,
> so maybe it's class_grandparent sometimes?).
...Hmm... I was probably wrong: this could be right if there are only
two levels of nesting used and class locks it's parent only!
Jarek P.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists