]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: fix LRU handling in ttm_buffer_object_transfer
authorChristian König <christian.koenig@amd.com>
Thu, 29 Nov 2018 15:25:10 +0000 (16:25 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 30 Nov 2018 17:12:16 +0000 (12:12 -0500)
commit1b25e4ad27591490d3f0375ae5e8268d2fea7a8a
tree3a790a944e79e4c57e65138e4b27354e9d4a968e
parenta79ea1dd9550de0cadb04928786271f6c793cb33
drm/ttm: fix LRU handling in ttm_buffer_object_transfer

We need to set the NO_EVICT flag on the ghost object or otherwise we are
adding it to the LRU.

When it is added to the LRU we can run into a race between destroying
and evicting it again.

Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_bo_util.c