From: Chris Wilson Date: Tue, 6 Aug 2013 08:59:46 +0000 (+0100) Subject: drm: Apply kref_put_mutex() optimisations to drm_gem_object_unreference_unlocked() X-Git-Tag: v3.12-rc1~136^2~138 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fc65eb731cda8304865669166fb9a4c519bee69;p=pandora-kernel.git drm: Apply kref_put_mutex() optimisations to drm_gem_object_unreference_unlocked() We can apply the same optimisation tricks as kref_put_mutex() in our local equivalent function. However, we have a different locking semantic (we unlock ourselves, in kref_put_mutex() the callee unlocks) so that we can use the same callbacks for both locked and unlocked kref_put()s and so can not simply convert to using kref_put_mutex() directly. Signed-off-by: Chris Wilson Reviewed-by: Daniel Vetter Signed-off-by: Dave Airlie --- Reading git-diff-tree failed