diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-01-27 22:10:12 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-01-27 22:10:12 +0000 |
commit | 199c07c61ddc45b253e07b87fc262969f20d0dcd (patch) | |
tree | 3b26a67c8fd16e53ab0bb291f34cf75c92675de6 /sys | |
parent | c1161a1b940a7c1eb5c604810be5a5dc3a8b7f32 (diff) |
drm/ttm: Put BO in its memory manager's lru list
From xinhui pan
0da09030aae4a3c9de4699e7ce71085639f8c378 in linux 5.15.y/5.15.17
781050b0a3164934857c300bb0bc291e38c26b6f in mainline linux
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/drm/ttm/ttm_bo.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/ttm/ttm_bo.c b/sys/dev/pci/drm/ttm/ttm_bo.c index c840e7e26cc..d66b8341081 100644 --- a/sys/dev/pci/drm/ttm/ttm_bo.c +++ b/sys/dev/pci/drm/ttm/ttm_bo.c @@ -724,6 +724,8 @@ int ttm_mem_evict_first(struct ttm_device *bdev, ret = ttm_bo_evict(bo, ctx); if (locked) ttm_bo_unreserve(bo); + else + ttm_bo_move_to_lru_tail_unlocked(bo); ttm_bo_put(bo); return ret; |