Return to linux_dma_buf.c CVS log | Up to [cvs.NetBSD.org] / src / sys / external / bsd / drm2 / linux |
Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. |
version 1.14, 2022/02/17 01:38:38 | version 1.15, 2022/04/09 23:44:44 | ||
---|---|---|---|
|
|
||
dma_buf_put(struct dma_buf *dmabuf) | dma_buf_put(struct dma_buf *dmabuf) | ||
{ | { | ||
membar_exit(); | membar_release(); | ||
if (atomic_dec_uint_nv(&dmabuf->db_refcnt) != 0) | if (atomic_dec_uint_nv(&dmabuf->db_refcnt) != 0) | ||
return; | return; | ||
membar_enter(); | membar_acquire(); | ||
dma_resv_poll_fini(&dmabuf->db_resv_poll); | dma_resv_poll_fini(&dmabuf->db_resv_poll); | ||
mutex_destroy(&dmabuf->db_lock); | mutex_destroy(&dmabuf->db_lock); |