drm/ttm: Don't unreserve swapped BOs that were previously reserved
authorFelix Kuehling <Felix.Kuehling@amd.com>
Thu, 18 Jan 2018 04:54:07 +0000 (23:54 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Jan 2018 21:14:32 +0000 (16:14 -0500)
commitad76c65ec39f20139885ecd4e5830f2c2a643dcb
treeab56885a0f12f07714e80e92a2c1b040cd93ecdd
parentfd5002d6a3c602664b07668a24df4ef7a43bf078
drm/ttm: Don't unreserve swapped BOs that were previously reserved

If ttm_bo_swapout doesn't own the lock, don't release it. Someone
else probably depends on it still being locked.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_bo.c