locking: Add WARN_ON_ONCE lock assertion
authorPeter Hurley <peter@hurleysoftware.com>
Wed, 10 Sep 2014 18:31:39 +0000 (14:31 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Sep 2014 04:06:21 +0000 (21:06 -0700)
commit9a37110d20c95d1ebf6c04881177fe8f62831db2
tree6c997c35c6e3193fc73e4bfeb74ddc5fee56f233
parent93b8877471796c04c16fdef755d4e5c0f521509f
locking: Add WARN_ON_ONCE lock assertion

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.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Acked-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/lockdep.h