Re: [PATCH v3 05/10] lib: add dmabuf token infrastructure

Markus Elfring <[email protected]>
Newsgroups org.kernel.vger.io-uring,org.freedesktop.lists.dri-devel,org.infradead.lists.linux-nvme,org.kernel.vger.linux-block,org.kernel.vger.linux-fsdevel,org.kernel.vger.linux-kernel,org.kernel.vger.linux-media
Message-ID <[email protected]>
…
> +++ b/lib/io_dmabuf_token.c
> @@ -0,0 +1,272 @@
…
> +static void io_dmabuf_map_release_work(struct work_struct *work)
> +{
…
> +	dma_resv_lock(dmabuf->resv, NULL);
> +	token->dev_ops->unmap(token, map);
> +	dma_resv_unlock(dmabuf->resv);
…

How do you think about to apply another lock guard?

Regards,
Markus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.