diff options
Diffstat (limited to 'sys/dev/pci/drm/i915_gem_evict.c')
-rw-r--r-- | sys/dev/pci/drm/i915_gem_evict.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/dev/pci/drm/i915_gem_evict.c b/sys/dev/pci/drm/i915_gem_evict.c index 70a5019ebe4..592c7dda3a2 100644 --- a/sys/dev/pci/drm/i915_gem_evict.c +++ b/sys/dev/pci/drm/i915_gem_evict.c @@ -93,14 +93,12 @@ i915_gem_evict_something(struct inteldrm_softc *dev_priv, size_t min_size) * leave us a buffer to evict. */ found = 0; - mtx_enter(&dev_priv->request_lock); for_each_ring(ring, dev_priv, i) { if (!list_empty(&ring->request_list)) { request = list_first_entry(&ring->request_list, struct drm_i915_gem_request, list); seqno = request->seqno; - mtx_leave(&dev_priv->request_lock); ret = i915_wait_seqno(request->ring, seqno); if (ret) @@ -112,7 +110,6 @@ i915_gem_evict_something(struct inteldrm_softc *dev_priv, size_t min_size) } if (found) continue; - mtx_leave(&dev_priv->request_lock); /* If we didn't have anything on the request list but there * are buffers awaiting a flush, emit one and try again. |