Re: [PATCH v2 1/4] dma-buf: Add dma_buf_try_get()

2022-09-06 Thread Christian König
Am 06.09.22 um 18:44 schrieb Jason Gunthorpe: On Thu, Sep 01, 2022 at 09:55:08AM +0200, Christian König wrote: Am 01.09.22 um 01:12 schrieb Jason Gunthorpe: Used to increment the refcount of the dma buf's struct file, only if the refcount is not zero. Useful to allow the struct file's lifetime

Re: [PATCH v2 1/4] dma-buf: Add dma_buf_try_get()

2022-09-06 Thread Jason Gunthorpe
On Thu, Sep 01, 2022 at 09:55:08AM +0200, Christian König wrote: > Am 01.09.22 um 01:12 schrieb Jason Gunthorpe: > > Used to increment the refcount of the dma buf's struct file, only if the > > refcount is not zero. Useful to allow the struct file's lifetime to > > control the lifetime of the dmabu

Re: [PATCH v2 1/4] dma-buf: Add dma_buf_try_get()

2022-09-01 Thread Christian König
Am 01.09.22 um 01:12 schrieb Jason Gunthorpe: Used to increment the refcount of the dma buf's struct file, only if the refcount is not zero. Useful to allow the struct file's lifetime to control the lifetime of the dmabuf while still letting the driver to keep track of created dmabufs. Signed-of

[PATCH v2 1/4] dma-buf: Add dma_buf_try_get()

2022-08-31 Thread Jason Gunthorpe
Used to increment the refcount of the dma buf's struct file, only if the refcount is not zero. Useful to allow the struct file's lifetime to control the lifetime of the dmabuf while still letting the driver to keep track of created dmabufs. Signed-off-by: Jason Gunthorpe --- include/linux/dma-bu