diff options
author | Jason Ekstrand <jason@jlekstrand.net> | 2017-08-25 10:52:21 -0700 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2017-08-29 06:20:31 +1000 |
commit | afca4216b8b1085f3a53a27b732d95be257ecffb (patch) | |
tree | ec4b5d8217520be9acee6ef59483bdbc7ff94d17 /drivers/gpu/drm/i915 | |
parent | 309a5482fa9eb7bc754bf95a2cd89091b01c33d2 (diff) | |
download | linux-stable-afca4216b8b1085f3a53a27b732d95be257ecffb.tar.gz linux-stable-afca4216b8b1085f3a53a27b732d95be257ecffb.tar.bz2 linux-stable-afca4216b8b1085f3a53a27b732d95be257ecffb.zip |
i915: Use drm_syncobj_fence_get
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/i915')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem_execbuffer.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_execbuffer.c b/drivers/gpu/drm/i915/i915_gem_execbuffer.c index 3d74f3a27c13..4c2016237d61 100644 --- a/drivers/gpu/drm/i915/i915_gem_execbuffer.c +++ b/drivers/gpu/drm/i915/i915_gem_execbuffer.c @@ -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; |