• Peter Zijlstra's avatar
    locking/atomic, kref: Add kref_read() · 2c935bc5
    Peter Zijlstra authored
    Since we need to change the implementation, stop exposing internals.
    Provide kref_read() to read the current reference count; typically
    used for debug messages.
    Kills two anti-patterns:
    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: Ingo Molnar's avatarIngo Molnar <mingo@kernel.org>
dlmmaster.c 98.3 KB