[PATCH] drm/ttm: Fix up a theoretical deadlock

2010-11-11 Thread Thomas Hellstrom
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

[PATCH] drm/ttm: Fix up a theoretical deadlock

2010-11-11 Thread Thomas Hellstrom
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