Files
kernel_arpi/include/linux
Thomas Hellstrom 4b20db3de8 kref: Implement kref_get_unless_zero v3
This function is intended to simplify locking around refcounting for
objects that can be looked up from a lookup structure, and which are
removed from that lookup structure in the object destructor.
Operations on such objects require at least a read lock around
lookup + kref_get, and a write lock around kref_put + remove from lookup
structure. Furthermore, RCU implementations become extremely tricky.
With a lookup followed by a kref_get_unless_zero *with return value check*
locking in the kref_put path can be deferred to the actual removal from
the lookup structure and RCU lookups become trivial.

v2: Formatting fixes.
v3: Invert the return value.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-11-20 16:15:02 +10:00
..
2012-10-08 13:50:20 +10:30
2012-10-16 18:49:15 -07:00
2012-10-16 13:37:17 -04:00
2012-10-06 03:04:56 +09:00
2012-11-20 16:15:02 +10:00
2012-10-10 01:15:44 -04:00
2012-10-09 16:22:54 +09:00
2012-10-09 16:23:00 +09:00
2012-10-10 20:00:55 +10:30
2012-10-17 15:53:01 -05:00
2012-10-17 15:53:02 -05:00
2012-10-10 22:41:05 -04:00
2012-10-05 22:23:53 +02:00
2012-10-11 08:50:16 +09:00
2012-10-06 03:05:01 +09:00
2012-10-11 20:02:04 -04:00
2012-10-07 00:40:54 -04:00
2012-10-09 16:22:55 +09:00
2012-10-22 15:16:06 -04:00
2012-10-09 16:22:32 +09:00
2012-10-07 21:19:42 +02:00
2012-10-17 11:16:13 -07:00