i915: Use drm_syncobj_fence_get
authorJason Ekstrand <jason@jlekstrand.net>
Fri, 25 Aug 2017 17:52:21 +0000 (10:52 -0700)
committerDave Airlie <airlied@redhat.com>
Mon, 28 Aug 2017 20:20:31 +0000 (06:20 +1000)
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/i915/i915_gem_execbuffer.c

index 3d74f3a..4c20162 100644 (file)
@@ -2129,9 +2129,7 @@ await_fence_array(struct i915_execbuffer *eb,
                if (!(flags & I915_EXEC_FENCE_WAIT))
                        continue;
 
-               rcu_read_lock();
-               fence = dma_fence_get_rcu_safe(&syncobj->fence);
-               rcu_read_unlock();
+               fence = drm_syncobj_fence_get(syncobj);
                if (!fence)
                        return -EINVAL;