Re: [PATCH] locking: Add WARN_ON_ONCE lock assertion

From: Greg Kroah-Hartman
Date: Wed Sep 17 2014 - 12:10:32 EST


On Wed, Sep 17, 2014 at 02:32:56PM +0200, Ingo Molnar wrote:
>
> * Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> wrote:
>
> > On Tue, Sep 16, 2014 at 10:08:14AM +0200, Ingo Molnar wrote:
> > >
> > > * Peter Hurley <peter@xxxxxxxxxxxxxxxxxx> 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 <gregkh@xxxxxxxxxxxxxxxxxxx>
> > > > Signed-off-by: Peter Hurley <peter@xxxxxxxxxxxxxxxxxx>
> > >
> > > Acked-by: Ingo Molnar <mingo@xxxxxxxxxx>
> >
> > Any objection for me taking this through the TTY tree due to
> > the dependancies on future tty patches that use the function in
> > this patch?
>
> Now that the patch is correct I have no objection whatsoever,
> feel free!

Thanks, will do.

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/