drm: introduce drm_gem_object_[handle_]unreference_unlocked
authorLuca Barbieri <luca@luca-barbieri.com>
Tue, 9 Feb 2010 05:49:11 +0000 (05:49 +0000)
committerDave Airlie <airlied@redhat.com>
Thu, 11 Feb 2010 04:21:24 +0000 (14:21 +1000)
This patch introduces the drm_gem_object_unreference_unlocked
and drm_gem_object_handle_unreference_unlocked functions that
do not require holding struct_mutex.

drm_gem_object_unreference_unlocked calls the new
->gem_free_object_unlocked entry point if available, and
otherwise just takes struct_mutex and just calls ->gem_free_object

Signed-off-by: Luca Barbieri <luca@luca-barbieri.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>

No differences found