drm/i915: Take a reference whilst processing the signaler request
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 23 Feb 2017 07:44:15 +0000 (07:44 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 23 Feb 2017 14:49:34 +0000 (14:49 +0000)
commitcced5e2f098d9db26cf4119e309068b79cca1274
tree5005a6f9052faf424014faae48c6cffe771ad93b
parent754c9fd5764909bc7c3ba9779355d55cb357be8a
drm/i915: Take a reference whilst processing the signaler request

The plan in the near-future is to allow requests to be removed from the
signaler. We can no longer then rely on holding a reference to the
request for the duration it is in the signaling tree, and instead must
obtain a reference to the request for the current operation using RCU.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170223074422.4125-10-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_breadcrumbs.c
drivers/gpu/drm/i915/intel_ringbuffer.h