[Intel-gfx] [PATCH v3 14/15] vfio: Add ioctls for device cdev using iommufd
Jason Gunthorpe
jgg at nvidia.com
Thu Feb 16 14:24:57 UTC 2023
On Thu, Feb 16, 2023 at 10:28:33AM +0000, Liu, Yi L wrote:
> However, I need to admit, your fix can reduce the reference of iommufd file.
> This may avoid file reference counting overflow if there are multiple devices
> assigned to an application. I'm not sure how possible it is though. 😊 I'll see
> if Alex or Jason have any preference.
Please write refcounting in a way that is easy to understand and don't
try to be clever.
Every stored pointer to a ref object should hold its own ref.
Jason
More information about the Intel-gfx
mailing list