mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-02 01:06:46 +09:00
drm/ttm: Fix spinlock imbalance
commit a8ff3ee211 upstream.
This imbalance may cause hangs when TTM is trying to swap out a buffer
that is already on the delayed delete list.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
df1dadab46
commit
166ab4d1f2
@@ -1809,6 +1809,7 @@ static int ttm_bo_swapout(struct ttm_mem_shrink *shrink)
|
||||
spin_unlock(&glob->lru_lock);
|
||||
(void) ttm_bo_cleanup_refs(bo, false, false, false);
|
||||
kref_put(&bo->list_kref, ttm_bo_release_list);
|
||||
spin_lock(&glob->lru_lock);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user