Change-Id: I5b6afbdd715e28e5266b5099ca9a34399d1fc3a1 Signed-off-by: Chunming Zhou <david1.zhou@xxxxxxx> --- drivers/gpu/drm/ttm/ttm_bo.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c index dc9545eeb5d6..d6e7c835f4c1 100644 --- a/drivers/gpu/drm/ttm/ttm_bo.c +++ b/drivers/gpu/drm/ttm/ttm_bo.c @@ -261,8 +261,13 @@ void ttm_bo_move_to_lru_tail(struct ttm_buffer_object *bo) { reservation_object_assert_held(bo->resv); - ttm_bo_del_from_lru(bo); - ttm_bo_add_to_lru(bo); + if (bo->resv == bo->process->resv) { + list_move_tail(&bo->process->process_list, + &bo->bdev->process_list); + } else { + ttm_bo_del_from_lru(bo); + ttm_bo_add_to_lru(bo); + } } EXPORT_SYMBOL(ttm_bo_move_to_lru_tail); -- 2.14.1 _______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/dri-devel