locking/atomic, kref: Implement kref_put_lock()
authorPeter Zijlstra <peterz@infradead.org>
Mon, 14 Nov 2016 17:03:11 +0000 (18:03 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 18 Jan 2017 09:03:29 +0000 (10:03 +0100)
commit0a13cd1a05e7a549259d4f803d2ec2efda07ed7c
tree8d8799d8a46d827a689e9939d472654b307e16c8
parent23b19ec3377924eb8f303880102e056e9214ba72
locking/atomic, kref: Implement kref_put_lock()

Because home-rolling your own is _awesome_, stop doing it. Provide
kref_put_lock(), just like kref_put_mutex() but for a spinlock.

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>
include/linux/kref.h
net/sunrpc/svcauth.c