Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 177047
b: refs/heads/master
c: aaa2073
h: refs/heads/master
i:
  177045: 383bca5
  177043: d1fbef3
  177039: d94856a
v: v3
  • Loading branch information
Thomas Hellstrom authored and Dave Airlie committed Dec 16, 2009
1 parent aa03432 commit 7e68beb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: b663752627e7c6b4bc414684d71c6adce5719fce
refs/heads/master: aaa207369436d04bb85382ddbb688a5b9461fd21
7 changes: 4 additions & 3 deletions trunk/drivers/gpu/drm/ttm/ttm_bo.c
Original file line number Diff line number Diff line change
Expand Up @@ -465,27 +465,28 @@ static int ttm_bo_cleanup_refs(struct ttm_buffer_object *bo, bool remove_all)
spin_unlock(&bo->lock);

spin_lock(&glob->lru_lock);
put_count = ttm_bo_del_from_lru(bo);

ret = ttm_bo_reserve_locked(bo, false, false, false, 0);
BUG_ON(ret);
if (bo->ttm)
ttm_tt_unbind(bo->ttm);

if (!list_empty(&bo->ddestroy)) {
list_del_init(&bo->ddestroy);
kref_put(&bo->list_kref, ttm_bo_ref_bug);
++put_count;
}
if (bo->mem.mm_node) {
bo->mem.mm_node->private = NULL;
drm_mm_put_block(bo->mem.mm_node);
bo->mem.mm_node = NULL;
}
put_count = ttm_bo_del_from_lru(bo);
spin_unlock(&glob->lru_lock);

atomic_set(&bo->reserved, 0);

while (put_count--)
kref_put(&bo->list_kref, ttm_bo_release_list);
kref_put(&bo->list_kref, ttm_bo_ref_bug);

return 0;
}
Expand Down

0 comments on commit 7e68beb

Please sign in to comment.