Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 275906
b: refs/heads/master
c: 26cc40a
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Hellstrom authored and Dave Airlie committed Nov 22, 2011
1 parent b4f6131 commit 9a48b2a
Show file tree
Hide file tree
Showing 2 changed files with 8 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: cdaeb578aca9e017deb0f55f1af8a94a4d63efb3
refs/heads/master: 26cc40a83384178bfaefbcfb4786591498f3e190
8 changes: 7 additions & 1 deletion trunk/drivers/gpu/drm/ttm/ttm_bo.c
Original file line number Diff line number Diff line change
Expand Up @@ -574,10 +574,16 @@ static int ttm_bo_cleanup_refs(struct ttm_buffer_object *bo,
return ret;

spin_lock(&glob->lru_lock);

if (unlikely(list_empty(&bo->ddestroy))) {
spin_unlock(&glob->lru_lock);
return 0;
}

ret = ttm_bo_reserve_locked(bo, interruptible,
no_wait_reserve, false, 0);

if (unlikely(ret != 0) || list_empty(&bo->ddestroy)) {
if (unlikely(ret != 0)) {
spin_unlock(&glob->lru_lock);
return ret;
}
Expand Down

0 comments on commit 9a48b2a

Please sign in to comment.