aboutsummaryrefslogtreecommitdiffstats
path: root/lib/vsprintf.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2013-06-12 20:52:35 -0700
committerTejun Heo <tj@kernel.org>2013-06-13 11:08:27 -0700
commitbc497bd33b2d6a6f07bc8574b4764edbd7fdffa8 (patch)
tree2425880399cae042dcb7bf9c4fefdbdaf67f6ab5 /lib/vsprintf.c
parentpercpu-refcount: add __must_check to percpu_ref_init() and don't use ACCESS_O... (diff)
downloadlinux-bc497bd33b2d6a6f07bc8574b4764edbd7fdffa8.tar.gz
linux-bc497bd33b2d6a6f07bc8574b4764edbd7fdffa8.zip
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>
Diffstat (limited to 'lib/vsprintf.c')
0 files changed, 0 insertions, 0 deletions
span>/+8 2017-02-08[media] v4l: of: check for unique lanes in data-lanes and clock-lanesNiklas Söderlund1-1/+12 2017-02-08[media] coda/imx-vdoa: constify structsMauro Carvalho Chehab1-2/+2 2017-02-08[media] st-delta: debug: trace stream/frame information & summaryHugues Fruchet4-5/+117 2017-02-08[media] st-delta: add mjpeg supportHugues Fruchet8-1/+885 2017-02-08[media] st-delta: EOS (End Of Stream) supportHugues Fruchet2-1/+168 2017-02-08[media] st-delta: rpmsg ipc supportHugues Fruchet6-1/+704 2017-02-08[media] st-delta: add memory allocator helper functionsHugues Fruchet4-1/+74 2017-02-08[media] st-delta: STiH4xx multi-format video decoder v4l2 driverHugues Fruchet6-0/+2420 2017-02-08[media] MAINTAINERS: add st-delta driverHugues Fruchet1-0/+8 2017-02-08[media] ARM: multi_v7_defconfig: enable STMicroelectronics DELTA SupportHugues Fruchet1-0/+1 2017-02-08[media] ARM: dts: STiH407-family: add DELTA dt nodeHugues Fruchet1-0/+10