linux/drivers/infiniband/hw
Peter Zijlstra 2c935bc572 locking/atomic, kref: Add kref_read()
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:

	atomic_read(&kref->refcount)
	kref->refcount.counter

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>
2017-01-14 11:37:18 +01:00
..
cxgb3 locking/atomic, kref: Add kref_read() 2017-01-14 11:37:18 +01:00
cxgb4 locking/atomic, kref: Add kref_read() 2017-01-14 11:37:18 +01:00
hfi1 Updates for 4.10 kernel merge window 2016-12-15 12:03:32 -08:00
hns Merge branch 'mlx' into merge-test 2016-12-14 14:44:25 -05:00
i40iw i40iw: Set 128B as the only supported RQ WQE size 2016-12-22 11:36:12 -05:00
mlx4 net/mlx4_core: Fix raw qp flow steering rules under SRIOV 2016-12-29 14:17:40 -05:00
mlx5 Updates for 4.10 kernel merge window 2016-12-15 12:03:32 -08:00
mthca Merge branch 'mlx' into merge-test 2016-12-14 14:44:25 -05:00
nes Updates for 4.10 kernel merge window 2016-12-15 12:03:32 -08:00
ocrdma Merge branches 'misc', 'qedr', 'reject-helpers', 'rxe' and 'srp' into merge-test 2016-12-14 14:44:47 -05:00
qedr First round of -rc fixes for 4.10 kernel 2016-12-23 10:38:48 -08:00
qib Merge branch 'hfi1' into merge-test 2016-12-14 14:44:08 -05:00
usnic locking/atomic, kref: Add kref_read() 2017-01-14 11:37:18 +01:00
vmw_pvrdma IB: Add vmw_pvrdma driver 2016-12-14 14:55:10 -05:00
Makefile IB: Add vmw_pvrdma driver 2016-12-14 14:55:10 -05:00