drm/vc4: Use drm_gem_object_unreference_unlocked
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 30 May 2016 17:53:06 +0000 (19:53 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 31 May 2016 19:13:23 +0000 (21:13 +0200)
commitdb3697295cf4da1356e3ec86761d464d6d013b48
tree3a06cd5308a73e5fc25f5f58ceeadae4b2dd20ba
parentcf48e2921ee95011a164dc31e8725022bd008666
drm/vc4: Use drm_gem_object_unreference_unlocked

Since my last struct_mutex crusade someone escaped!

This already has the advantage that for the common case when someone
else holds a ref the unref won't even acquire dev->struct_mutex. And
I'm working on code to allow drivers to completely opt-out of any and
all dev->struct_mutex usage, but that only works if they use the
_unlocked variants everywhere.

v2: Drop comment too.

v3: Drop the other comment too.

Cc: Eric Anholt <eric@anholt.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1464630800-30786-15-git-send-email-daniel.vetter@ffwll.ch
drivers/gpu/drm/vc4/vc4_bo.c
drivers/gpu/drm/vc4/vc4_gem.c