drm/ttm: Optimize vm locking using kref_get_unless_zero v3
authorThomas Hellstrom <thellstrom@vmware.com>
Wed, 21 Nov 2012 14:53:21 +0000 (14:53 +0000)
committerDave Airlie <airlied@redhat.com>
Wed, 28 Nov 2012 08:37:59 +0000 (18:37 +1000)
commit82fe50bcc87e508e85250c87b745296a36a07897
tree6fd205d9d0a92391e9bf5cf31a442a54992fe0b5
parent5293908afa04b651cc8a7e85ba0938b71f97c2f8
drm/ttm: Optimize vm locking using kref_get_unless_zero v3

Removes the need for a write lock each time we call ttm_bo_unref().

v2: Remove an unused variable.
v3: Really remove the unused variable.

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