locking/atomic, kref: Use kref_get_unless_zero() more
authorPeter Zijlstra <peterz@infradead.org>
Mon, 14 Nov 2016 16:35:56 +0000 (17:35 +0100)
committerIngo Molnar <mingo@kernel.org>
Sat, 14 Jan 2017 10:37:20 +0000 (11:37 +0100)
commit6b1ffa06e59d44e7ef04132f24c791931fbb0106
treec08ffc93fca77a0b89b651d7e9b4f81822034177
parentbdfafc4ffdd24e491119d81f85ddc4393fa49803
locking/atomic, kref: Use kref_get_unless_zero() more

For some obscure reason apparmor thinks its needs to locally implement
kref primitives that already exist. Stop doing this.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
security/apparmor/include/apparmor.h
security/apparmor/include/policy.h