drm/i915/gvt: remove the extra vfio_device refcounting for dmabufs
authorChristoph Hellwig <hch@lst.de>
Mon, 11 Apr 2022 14:13:53 +0000 (16:13 +0200)
committerZhi Wang <zhi.a.wang@intel.com>
Thu, 21 Apr 2022 11:36:56 +0000 (07:36 -0400)
commit37e4bdbd5bad711c7db5458041416f3925d7aae5
tree376bc27da21269fb0ba81d500461b67a5356cbea
parent5f8f3fe67cd90807f01ebac744c7e6148a8f6cb7
drm/i915/gvt: remove the extra vfio_device refcounting for dmabufs

All the dmabufs are torn down when th VGPU is released, so there is
no need for extra refcounting here.

Based on an patch from Jason Gunthorpe.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Zhi Wang <zhi.a.wang@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20220411141403.86980-25-hch@lst.de
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Zhi Wang <zhi.a.wang@intel.com>
drivers/gpu/drm/i915/gvt/dmabuf.c
drivers/gpu/drm/i915/gvt/gvt.h