Files
twx-linux/include/linux
Peter Zijlstra ea9df3c8cc locking/atomic, kref: Add kref_read()
commit 2c935bc572 upstream.

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>
[only add kref_read() to kref.h for stable backports - gregkh]
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-02 17:20:40 +02:00
..
2017-10-08 10:26:06 +02:00
2018-04-24 09:34:18 +02:00
2018-02-28 10:18:33 +01:00
2019-03-23 13:19:52 +01:00
2017-05-14 14:00:22 +02:00
2019-11-25 09:53:14 +01:00
2017-07-12 15:01:02 +02:00
2020-04-02 17:20:27 +02:00
2017-08-06 18:59:43 -07:00
2020-04-02 17:20:27 +02:00
2018-10-10 08:53:18 +02:00
2020-04-02 17:20:40 +02:00
2017-08-24 17:12:19 -07:00
2020-03-20 09:07:43 +01:00
2017-08-24 17:12:21 -07:00
2020-04-02 17:20:39 +02:00
2017-08-30 10:21:40 +02:00
2019-11-10 11:23:31 +01:00
2019-04-17 08:36:39 +02:00
2018-11-13 11:17:02 -08:00
2019-06-17 19:53:32 +02:00
2018-11-27 16:09:41 +01:00
2017-04-21 09:31:21 +02:00
2017-12-25 14:23:37 +01:00
2020-04-02 17:20:26 +02:00
2020-04-02 17:20:39 +02:00
2018-12-05 19:42:42 +01:00