drm/i915: Early return for no-op i915_vma_pin_fence()
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 8 Jan 2020 15:35:49 +0000 (15:35 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 9 Jan 2020 08:53:15 +0000 (08:53 +0000)
commit93db1cb4029290125048bca712d7f6c916a6e02e
treef00954675c874c9056d2035157858c0a2f0a6e8e
parent6e8b0f53c328c4065c53bca4577f428ddd11b103
drm/i915: Early return for no-op i915_vma_pin_fence()

If we have no fence and desire no fence on the vma, return before we try
and take the vm->mutex.

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/20200108153550.3803446-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_fence_reg.c