From: Thomas Hellstrom Date: Thu, 11 Nov 2010 09:04:53 +0000 (+0100) Subject: drm/ttm: Fix up a theoretical deadlock X-Git-Tag: v2.6.37-rc3~8^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95ccb0f3bdc4438bf470c25450e6a8a6090ca253;p=pandora-kernel.git drm/ttm: Fix up a theoretical deadlock A process suspended waiting for a higher sequence or no sequence to unreserve, a bo may be beaten to the reservation by a process with a lower sequence. In that case the first process should give up trying to reserve and return -EAGAIN. In order for that to happen, we must wake waiting processes when we change sequence, so that they have a chance to detect the new sequence. Signed-off-by: Thomas Hellstrom Signed-off-by: Dave Airlie --- Reading git-diff-tree failed