diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2012-06-01 09:39:11 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-06-01 12:00:19 -0400 |
commit | a8ff3ee211fccf708e1911bbc096625453ebf759 (patch) | |
tree | 8780763ddef18c1877331c9b97782c7a3d49e1a9 /drivers/gpu/drm/ttm | |
parent | 416a2bd274566a6f607a271f524b2dc0b84d9106 (diff) |
drm/ttm: Fix spinlock imbalance
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>
Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/ttm')
-rw-r--r-- | drivers/gpu/drm/ttm/ttm_bo.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c index 36792bd4da77..b67cfcaa661f 100644 --- a/drivers/gpu/drm/ttm/ttm_bo.c +++ b/drivers/gpu/drm/ttm/ttm_bo.c | |||
@@ -1834,6 +1834,7 @@ static int ttm_bo_swapout(struct ttm_mem_shrink *shrink) | |||
1834 | spin_unlock(&glob->lru_lock); | 1834 | spin_unlock(&glob->lru_lock); |
1835 | (void) ttm_bo_cleanup_refs(bo, false, false, false); | 1835 | (void) ttm_bo_cleanup_refs(bo, false, false, false); |
1836 | kref_put(&bo->list_kref, ttm_bo_release_list); | 1836 | kref_put(&bo->list_kref, ttm_bo_release_list); |
1837 | spin_lock(&glob->lru_lock); | ||
1837 | continue; | 1838 | continue; |
1838 | } | 1839 | } |
1839 | 1840 | ||