Re: [PATCH] locking: Add WARN_ON_ONCE lock assertion

2014-09-17 Thread Greg Kroah-Hartman
On Wed, Sep 17, 2014 at 02:32:56PM +0200, Ingo Molnar wrote: > > * Greg Kroah-Hartman wrote: > > > On Tue, Sep 16, 2014 at 10:08:14AM +0200, Ingo Molnar wrote: > > > > > > * Peter Hurley wrote: > > > > > > > An interface may need to assert a lock invariant and not flood the > > > > system log

Re: [PATCH] locking: Add WARN_ON_ONCE lock assertion

2014-09-17 Thread Ingo Molnar
* Greg Kroah-Hartman wrote: > On Tue, Sep 16, 2014 at 10:08:14AM +0200, Ingo Molnar wrote: > > > > * Peter Hurley wrote: > > > > > An interface may need to assert a lock invariant and not flood the > > > system logs; add a lockdep helper macro equivalent to > > > lockdep_assert_held() which o

Re: [PATCH] locking: Add WARN_ON_ONCE lock assertion

2014-09-16 Thread Greg Kroah-Hartman
On Tue, Sep 16, 2014 at 10:08:14AM +0200, Ingo Molnar wrote: > > * Peter Hurley wrote: > > > An interface may need to assert a lock invariant and not flood the > > system logs; add a lockdep helper macro equivalent to > > lockdep_assert_held() which only WARNs once. > > > > cc: Greg Kroah-Hartm

Re: [PATCH] locking: Add WARN_ON_ONCE lock assertion

2014-09-16 Thread Ingo Molnar
* Peter Hurley wrote: > An interface may need to assert a lock invariant and not flood the > system logs; add a lockdep helper macro equivalent to > lockdep_assert_held() which only WARNs once. > > cc: Greg Kroah-Hartman > Signed-off-by: Peter Hurley Acked-by: Ingo Molnar Thanks,

[PATCH] locking: Add WARN_ON_ONCE lock assertion

2014-09-10 Thread Peter Hurley
An interface may need to assert a lock invariant and not flood the system logs; add a lockdep helper macro equivalent to lockdep_assert_held() which only WARNs once. cc: Greg Kroah-Hartman Signed-off-by: Peter Hurley --- include/linux/lockdep.h | 5 + 1 file changed, 5 insertions(+) diff -