OSDN Git Service

drm/ttm: fix handling in ttm_bo_add_mem_to_lru
authorChristian König <christian.koenig@amd.com>
Thu, 10 Oct 2019 11:24:17 +0000 (13:24 +0200)
committerChristian König <christian.koenig@amd.com>
Mon, 14 Oct 2019 11:21:15 +0000 (13:21 +0200)
commit7fbc899ddeaa9aaef0ba646529089149572c84ee
tree81a2b3b4fe68685ce5865b55deba8a0dfaf08ec8
parent941f2f72dbbe0cf8c2d6e0b180a8021a0ec477fa
drm/ttm: fix handling in ttm_bo_add_mem_to_lru

We should not add the BO to the swap LRU when the new mem is fixed and
the TTM object about to be destroyed.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Kevin Wang <kevin1.wang@amd.com>
Link: https://patchwork.freedesktop.org/patch/335246/
drivers/gpu/drm/ttm/ttm_bo.c