drm/ttm: completely rework ttm_bo_delayed_delete
authorChristian König <christian.koenig@amd.com>
Wed, 15 Nov 2017 12:20:09 +0000 (13:20 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Dec 2017 17:47:54 +0000 (12:47 -0500)
commitc0c2c3bffc946f5a44ee695c663cbca96dacc4d0
tree949f7567fed1fe08f13b23b7b93b79d87f8220c8
parent090528639321ab09c150603c0da3c38c26aa5ea9
drm/ttm: completely rework ttm_bo_delayed_delete

There is no guarantee that the next entry on the ddelete list stays on
the list when we drop the locks.

Completely rework this mess by moving processed entries on a temporary
list.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-and-Tested-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_bo.c