drm/ttm: Use private locks for the default bo range manager
authorThomas Hellstrom <thellstrom@vmware.com>
Fri, 29 Oct 2010 08:46:45 +0000 (10:46 +0200)
committerDave Airlie <airlied@redhat.com>
Tue, 9 Nov 2010 03:33:24 +0000 (13:33 +1000)
commitd7a67cb16238abb3109c111761797e0584a6caf9
tree19ac4ed6632d24adda3c5b311612ef34c40fb7bd
parent3205bc242b5e3950c808049dbf199fca91f2c844
drm/ttm: Use private locks for the default bo range manager

Searching for a free block in the range manager may in some situations be a
lenghty operation, and we want to avoid holding the global lru lock
during that time. Instead use a per-manager spinlock.

This leaves the global lru lock for quick lru list and swap list manipulation
only, including list manipulation associated with reserving buffer objects.

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