[PATCH v11 3/7] iio: core: Add new DMABUF interface infrastructure

Markus Elfring Markus.Elfring at web.de
Wed Jun 19 11:43:33 UTC 2024


…
> +++ b/drivers/iio/industrialio-buffer.c
…
> +static void iio_buffer_dmabuf_release(struct kref *ref)
> +{
…
> +	dma_resv_lock(dmabuf->resv, NULL);
> +	dma_buf_unmap_attachment(attach, priv->sgt, priv->dir);
> +	dma_resv_unlock(dmabuf->resv);
…

Under which circumstances will another lock guard become applicable?
https://elixir.bootlin.com/linux/v6.10-rc4/source/include/linux/cleanup.h#L179

Regards,
Markus


More information about the dri-devel mailing list