linux/drivers/target/tcm_fc
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
..
Kconfig
Makefile tcm_fc: Makefile cleanups 2011-07-22 09:37:47 +00:00
tcm_fc.h target: Minimize #include directives 2016-12-09 10:22:28 -08:00
tfc_cmd.c scsi: libfc: Replace ->seq_release callback with function call 2016-11-08 17:29:56 -05:00
tfc_conf.c target: make ->shutdown_session optional 2016-05-10 01:19:18 -07:00
tfc_io.c scsi: libfc: Replace ->seq_start_next callback with function call 2016-11-08 17:29:56 -05:00
tfc_sess.c locking/atomic, kref: Add kref_read() 2017-01-14 11:37:18 +01:00