Files
kernel_arpi/include/linux
Tejun Heo bc497bd33b percpu-refcount: implement percpu_ref_cancel_init()
Normally, percpu_ref_init() initializes and percpu_ref_kill()
initiates destruction which completes asynchronously.  The
asynchronous destruction can be problematic in init failure path where
the caller wants to destroy half-constructed object - distinguishing
half-constructed objects from the usual release method can be painful
for complex objects.

This patch implements percpu_ref_cancel_init() which synchronously
destroys the percpu_ref without invoking release.  To avoid
unintentional misuses, the function requires the ref to have finished
percpu_ref_init() but never used and triggers WARN otherwise.

v2: Explain the weird name and usage restriction in the function
    comment.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Kent Overstreet <koverstreet@google.com>
2013-06-13 11:08:27 -07:00
..
2013-05-17 14:31:05 -04:00
2013-05-07 19:46:02 -07:00
2013-04-29 15:40:23 -04:00
2013-05-10 14:37:17 +01:00
2013-05-01 16:36:22 +05:30
2013-05-07 18:38:27 -07:00
2013-04-29 18:28:40 -07:00
2013-05-01 16:28:48 -04:00
2013-05-07 02:16:31 -04:00
2013-05-06 13:07:33 +02:00
2013-04-30 17:04:06 -07:00
2013-04-30 17:04:00 -07:00
2013-04-29 18:28:44 -07:00
2013-05-04 14:47:26 -04:00
2013-04-29 15:54:28 -07:00
2013-04-29 15:54:28 -07:00
2013-04-12 10:26:23 +02:00
2013-04-09 14:13:29 -04:00
2013-04-30 15:50:12 +05:30
2013-04-29 15:54:37 -07:00