commit | 10383aea2f445bce9b2a2b308def08134b438c8e | [log] [tgz] |
---|---|---|
author | Peter Zijlstra <peterz@infradead.org> | Mon Nov 14 18:06:19 2016 +0100 |
committer | Ingo Molnar <mingo@kernel.org> | Fri Feb 10 09:04:19 2017 +0100 |
tree | 64fea6972561d5a8899c2da53646771e65507734 | |
parent | f405df5de3170c00e5c54f8b7cf4766044a032ba [diff] |
kref: Implement 'struct kref' using refcount_t Use the refcount_t 'atomic' type to implement 'struct kref', this makes kref more robust by bringing saturation semantics. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@kernel.org>