]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: Handle orphan dmabuf_objs
authorTina Zhang <tina.zhang@intel.com>
Thu, 23 Nov 2017 08:26:37 +0000 (16:26 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 4 Dec 2017 03:24:34 +0000 (11:24 +0800)
commit67a2ea93a1bb70c1a6fa44d4e7778a8a365a6be0
tree0bd6378ed5d75945d776c4ed2299aba88a447793
parent493676e3dbd2177bb3785b2b1b0beec1a9b319c4
drm/i915/gvt: Handle orphan dmabuf_objs

dmabuf_obj's destruction relys on GEM release operation, which is managed
in i915 driver. And there is a time window between vgpu's destruction and
its dmabuf_objs' destruction. This patch is to free the orphan dmabuf_objs
correctly after the vgpu passes away.

Signed-off-by: Tina Zhang <tina.zhang@intel.com>
Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/dmabuf.c