]> git.baikalelectronics.ru Git - kernel.git/commit
dma-buf: Introduce fence_get_rcu_safe()
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 29 Aug 2016 07:08:29 +0000 (08:08 +0100)
committerSumit Semwal <sumit.semwal@linaro.org>
Wed, 12 Oct 2016 14:18:33 +0000 (19:48 +0530)
commit7ee11f7ba4572bb50d0c7c2f5c052f07ef791a44
tree890cd8132b7075a29d1620c5983c77b116e22e1e
parent25d090b752e5f8bfa1b77881c08b0de5c5cb2b0c
dma-buf: Introduce fence_get_rcu_safe()

This variant of fence_get_rcu() takes an RCU protected pointer to a
fence and carefully returns a reference to the fence ensuring that it is
not reallocated as it does. This is required when mixing fences and
SLAB_DESTROY_BY_RCU - although it serves a more pedagogical function atm

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Sumit Semwal <sumit.semwal@linaro.org>
Cc: linux-media@vger.kernel.org
Cc: dri-devel@lists.freedesktop.org
Cc: linaro-mm-sig@lists.linaro.org
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20160829070834.22296-6-chris@chris-wilson.co.uk
include/linux/fence.h