drm/ttm: Fix a theoretical race
authorThomas Hellstrom <thellstrom@vmware.com>
Mon, 22 Oct 2012 12:51:25 +0000 (12:51 +0000)
committerDave Airlie <airlied@redhat.com>
Tue, 23 Oct 2012 00:15:17 +0000 (10:15 +1000)
commit7bc17a7837bf4ec8fd2d63438c0b6b0160c454c1
treea50f3d05f4cad2a8678bc452d9f535ab2d4e890b
parenta16d4f86019a72b3e8cbb89abff769b25b53ab69
drm/ttm: Fix a theoretical race

The ttm_mem_evict_first function could theoretically drop the
lru lock without retrying if a reservation from off the LRU list
ended up waiting.
However, since currently there are no users that could cause a wait
in that situation so this is not suitable for stable

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/ttm/ttm_bo.c