drm/i915: Reduce spinlock hold time during notify_ring() interrupt
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 27 Jun 2018 20:13:01 +0000 (21:13 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 28 Jun 2018 19:56:35 +0000 (20:56 +0100)
commit3f88325c2e396658a17632a19b59958750d7ad89
treecbeb9116fb20fc6bb6422ed4ed1a55e5d509e43a
parent10195b1e4411191a30456e3e60bc539531b17053
drm/i915: Reduce spinlock hold time during notify_ring() interrupt

By taking advantage of the RCU protection of the task struct, we can find
the appropriate signaler under the spinlock and then release the spinlock
before waking the task and signaling the fence.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180627201304.15817-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_irq.c