Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6a83a553 authored by Christian König's avatar Christian König Committed by Alex Deucher
Browse files

drm/ttm: drop the spin in delayed delete if the trylock doesn't work



Thomas actually noticed that, but I didn't realized what he meant until
now.

Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarRoger He <Hongbo.He@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 873a7ea3
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -592,6 +592,8 @@ static bool ttm_bo_delayed_delete(struct ttm_bo_device *bdev, bool remove_all)

		} else if (reservation_object_trylock(bo->resv)) {
			ttm_bo_cleanup_refs(bo, false, !remove_all, true);
		} else {
			spin_unlock(&glob->lru_lock);
		}

		kref_put(&bo->list_kref, ttm_bo_release_list);