]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: Hold a reference on the request
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 20 Oct 2016 09:29:36 +0000 (17:29 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 20 Oct 2016 09:29:36 +0000 (17:29 +0800)
commit1ee348fc4936c7eace52d85029f674dd62b7358e
tree74ff85c97fbfd2612c2124a8ca46479526630ce0
parentcb26d0af73c7da3b9a5e07fa63de30f47354782b
drm/i915/gvt: Hold a reference on the request

The workload took a pointer to the request, and even waited upon,
without holding a reference on the request. Take that reference
explicitly and fix up the error path following request allocation that
missed flushing the request.

v2: [zhenyuw]
- drop request put in error path for dispatch, as main thread
caller will handle it identically to a real request.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/scheduler.c