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
..
2016-12-24 11:46:01 -08:00
2016-12-14 10:54:27 +01:00
2016-11-29 11:21:49 -05:00
2016-12-24 11:46:01 -08:00
2016-11-08 17:29:48 -05:00
2016-12-14 10:49:33 -08:00
2016-12-24 11:46:01 -08:00
2017-01-14 11:37:18 +01:00
2016-12-25 10:47:43 +01:00
2017-01-14 11:37:18 +01:00
2016-11-30 19:53:02 -05:00
2016-12-14 10:49:33 -08:00
2016-11-08 17:29:56 -05:00
2016-11-16 20:41:49 -05:00
2016-12-07 18:55:58 -05:00
2016-12-08 17:04:25 -05:00
2016-12-25 17:21:22 +01:00
2016-12-01 08:36:17 -05:00
2016-12-14 10:49:33 -08:00
2017-01-14 11:37:18 +01:00
2016-12-24 11:46:01 -08:00
2016-12-14 15:40:38 -05:00
2016-12-14 10:49:33 -08:00
2016-10-28 08:45:17 -06:00
2016-12-25 10:47:18 +01:00
2017-01-14 11:37:18 +01:00
2016-12-07 18:58:58 -05:00
2016-11-08 17:30:00 -05:00
2016-12-25 17:21:22 +01:00
2016-12-24 11:46:01 -08:00
2016-12-14 15:25:12 -05:00
2016-12-24 11:46:01 -08:00
2016-12-14 15:25:12 -05:00
2016-12-24 11:46:01 -08:00
2016-12-14 15:25:12 -05:00
2016-11-08 17:29:58 -05:00
2016-11-08 17:29:48 -05:00
2016-11-16 20:43:50 -05:00
2016-12-24 11:46:01 -08:00
2016-12-08 16:58:22 -05:00
2016-12-08 16:57:21 -05:00
2016-12-24 11:46:01 -08:00
2016-12-14 15:33:13 -05:00
2016-12-14 10:49:33 -08:00
2016-12-24 11:46:01 -08:00
2016-11-30 19:58:04 -05:00
2016-11-08 17:29:46 -05:00
2016-11-08 17:29:57 -05:00
2016-12-24 11:46:01 -08:00
2016-12-14 14:56:28 -05:00
2016-10-17 13:34:44 -04:00
2016-11-08 17:29:48 -05:00
2016-12-14 14:56:28 -05:00
2016-12-24 11:46:01 -08:00
2016-12-08 16:57:21 -05:00
2016-12-08 16:57:21 -05:00
2016-12-24 11:46:01 -08:00
2016-12-14 10:49:33 -08:00
2016-11-28 15:51:31 -05:00
2016-12-25 17:21:22 +01:00
2016-12-07 18:13:52 -05:00
2016-10-28 08:45:17 -06:00
2016-12-24 11:46:01 -08:00
2016-12-14 10:49:33 -08:00
2016-12-24 11:46:01 -08:00
2016-10-11 18:02:09 -04:00
2016-12-14 15:51:17 -05:00
2016-11-17 20:15:26 -05:00
2016-11-29 11:21:27 -05:00
2016-11-05 17:09:53 -06:00
2016-11-14 13:16:42 -07:00
2016-12-24 11:46:01 -08:00
2016-10-18 19:49:11 -06:00
2016-12-22 23:03:42 -05:00
2016-12-24 11:46:01 -08:00
2016-12-24 11:46:01 -08:00
2016-12-24 11:46:01 -08:00
2016-11-30 11:38:24 -05:00
2016-11-08 17:29:48 -05:00
2016-11-01 13:31:23 -04:00
2016-11-01 13:31:23 -04:00
2016-12-09 10:59:13 +01:00