struct qxl_device *qdev = node->minor->dev->dev_private;
struct qxl_bo *bo;
- spin_lock(&qdev->release_lock);
list_for_each_entry(bo, &qdev->gem.objects, list) {
struct reservation_object_list *fobj;
int rel;
(unsigned long)bo->gem_base.size,
bo->pin_count, rel);
}
- spin_unlock(&qdev->release_lock);
return 0;
}
retry:
sc++;
- if (fence_is_signaled_locked(fence))
+ if (fence_is_signaled(fence))
goto signaled;
qxl_io_notify_oom(qdev);
if (!qxl_queue_garbage_collect(qdev, true))
break;
- if (fence_is_signaled_locked(fence))
+ if (fence_is_signaled(fence))
goto signaled;
}
- if (fence_is_signaled_locked(fence))
+ if (fence_is_signaled(fence))
goto signaled;
if (have_drawable_releases || sc < 4) {
glob = bo->glob;
spin_lock(&glob->lru_lock);
- /* acquire release_lock to protect bo->resv->fence and its contents */
- spin_lock(&qdev->release_lock);
list_for_each_entry(entry, &release->bos, head) {
bo = entry->bo;
ttm_bo_add_to_lru(bo);
__ttm_bo_unreserve(bo);
}
- spin_unlock(&qdev->release_lock);
spin_unlock(&glob->lru_lock);
ww_acquire_fini(&release->ticket);
}