diff options
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c index f1f1b6796669..57adcad2f7ba 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |||
@@ -466,7 +466,6 @@ void amdgpu_bo_force_delete(struct amdgpu_device *adev) | |||
466 | } | 466 | } |
467 | dev_err(adev->dev, "Userspace still has active objects !\n"); | 467 | dev_err(adev->dev, "Userspace still has active objects !\n"); |
468 | list_for_each_entry_safe(bo, n, &adev->gem.objects, list) { | 468 | list_for_each_entry_safe(bo, n, &adev->gem.objects, list) { |
469 | mutex_lock(&adev->ddev->struct_mutex); | ||
470 | dev_err(adev->dev, "%p %p %lu %lu force free\n", | 469 | dev_err(adev->dev, "%p %p %lu %lu force free\n", |
471 | &bo->gem_base, bo, (unsigned long)bo->gem_base.size, | 470 | &bo->gem_base, bo, (unsigned long)bo->gem_base.size, |
472 | *((unsigned long *)&bo->gem_base.refcount)); | 471 | *((unsigned long *)&bo->gem_base.refcount)); |
@@ -474,8 +473,7 @@ void amdgpu_bo_force_delete(struct amdgpu_device *adev) | |||
474 | list_del_init(&bo->list); | 473 | list_del_init(&bo->list); |
475 | mutex_unlock(&bo->adev->gem.mutex); | 474 | mutex_unlock(&bo->adev->gem.mutex); |
476 | /* this should unref the ttm bo */ | 475 | /* this should unref the ttm bo */ |
477 | drm_gem_object_unreference(&bo->gem_base); | 476 | drm_gem_object_unreference_unlocked(&bo->gem_base); |
478 | mutex_unlock(&adev->ddev->struct_mutex); | ||
479 | } | 477 | } |
480 | } | 478 | } |
481 | 479 | ||