[PATCH 4/6] drm/ttm: cope with reserved buffers on swap list in ttm_bo_swapout, v2

Thomas Hellstrom thellstrom at vmware.com
Wed Nov 28 06:27:18 PST 2012


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>



More information about the dri-devel mailing list