Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 143306
b: refs/heads/master
c: 68c8434
h: refs/heads/master
v: v3
  • Loading branch information
Shaohua Li authored and Eric Anholt committed Apr 14, 2009
1 parent 798223b commit 5e8110a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 280b713b5b0fd84cf2469098aee88acbb5de859c
refs/heads/master: 68c84342171034120c8a1f6dfb8ef51b14250f11
13 changes: 12 additions & 1 deletion trunk/drivers/gpu/drm/i915/i915_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -1596,8 +1596,19 @@ i915_gem_retire_request(struct drm_device *dev,

if (obj->write_domain != 0)
i915_gem_object_move_to_flushing(obj);
else
else {
/* Take a reference on the object so it won't be
* freed while the spinlock is held. The list
* protection for this spinlock is safe when breaking
* the lock like this since the next thing we do
* is just get the head of the list again.
*/
drm_gem_object_reference(obj);
i915_gem_object_move_to_inactive(obj);
spin_unlock(&dev_priv->mm.active_list_lock);
drm_gem_object_unreference(obj);
spin_lock(&dev_priv->mm.active_list_lock);
}
}
out:
spin_unlock(&dev_priv->mm.active_list_lock);
Expand Down

0 comments on commit 5e8110a

Please sign in to comment.