OSDN Git Service

drm/ttm: use try_lock in ttm_bo_delayed_delete again
authorChristian König <christian.koenig@amd.com>
Fri, 15 Dec 2017 12:36:49 +0000 (13:36 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 18 Dec 2017 16:52:47 +0000 (11:52 -0500)
commit827ed2b06b05a9e9791e10f03096cc5ddd85bc44
treeb4ca0b86b5dff59bc36c01c4e6f13721eb11c2c0
parent3b1186fd2aa4ab09b199580d9254c61eb6b6cfbc
drm/ttm: use try_lock in ttm_bo_delayed_delete again

We only need to wait for the contended lock when the reservation object is
shared or when we want to remove everything. A trylock should be sufficient
in all other cases.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Roger He <Hongbo.He@amd.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_bo.c