Files
Linux/drivers
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) <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Paul E. McKenney <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Signed-off-by: Ingo Molnar <[email protected]>
2017-01-14 11:37:18 +01:00
..
…
…
2016-12-25 10:47:44 +01:00
2017-01-06 14:34:52 +01:00
…
2016-12-25 17:21:22 +01:00
…
…
…
2017-01-14 11:37:18 +01:00
…
2016-12-25 17:21:22 +01:00
2016-12-25 10:47:44 +01:00
2016-12-25 17:21:22 +01:00
…
2017-01-14 11:14:16 +01:00
2016-12-25 17:21:22 +01:00
…
2017-01-14 11:37:18 +01:00
2016-12-25 10:47:44 +01:00
2016-12-25 17:21:22 +01:00
…
…
…
2016-12-25 17:21:22 +01:00
2016-12-25 17:21:22 +01:00
…
…
…
…
…
2017-01-14 11:14:16 +01:00
…
2017-01-14 11:37:18 +01:00
…
…
…
…
…
…