On 11/28/2012 12:25 PM, Maarten Lankhorst wrote:
> Replace the while loop with a simple for each loop, and only run the
> delayed destroy cleanup if we can reserve the buffer first.
>
> No race occurs, since lru lock is never dropped any more. An empty list
> and a list full of unreservable buffers both cause -EBUSY to be returned,
> which is identical to the previous situation.
>
> Signed-off-by: Maarten Lankhorst <maarten.lankhorst at canonical.com>
> ---
>   drivers/gpu/drm/ttm/ttm_bo.c | 44 
> ++++++++++++++------------------------------
>   1 file changed, 14 insertions(+), 30 deletions(-)
>
For patch 4-6

Reviewed-by: Thomas Hellstrom <thellstrom at vmware.com>

Reply via email to