Re: [PATCH] kernfs: skip lockdep annotation always if ignore_lockdep is set

2014-02-07 Thread Greg Kroah-Hartman
On Fri, Feb 07, 2014 at 02:53:13PM -0500, Tejun Heo wrote: > On Fri, Feb 07, 2014 at 09:47:01PM +0200, Imre Deak wrote: > > We skip lockdep annotations for sysfs attributes with ignore_lockdep > > set. An exception is kernfs_deactivate where we annotate even in this > > case. Since the lockdep map

Re: [PATCH] kernfs: skip lockdep annotation always if ignore_lockdep is set

2014-02-07 Thread Tejun Heo
On Fri, Feb 07, 2014 at 09:47:01PM +0200, Imre Deak wrote: > We skip lockdep annotations for sysfs attributes with ignore_lockdep > set. An exception is kernfs_deactivate where we annotate even in this > case. Since the lockdep map key needed for the annotation is not > initialized whenever ignore_

[PATCH] kernfs: skip lockdep annotation always if ignore_lockdep is set

2014-02-07 Thread Imre Deak
We skip lockdep annotations for sysfs attributes with ignore_lockdep set. An exception is kernfs_deactivate where we annotate even in this case. Since the lockdep map key needed for the annotation is not initialized whenever ignore_lockdep is set, we'll get a warning for the uninitialized key. Not