• Peter Zijlstra's avatar
    locking/atomic, kref: Implement kref_put_lock() · 0a13cd1a
    Peter Zijlstra authored
    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: default avatarPeter 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: default avatarIngo Molnar <mingo@kernel.org>
    0a13cd1a