drm/modes: reduce fb_lock to just protecting lists
authorDave Airlie <airlied@redhat.com>
Fri, 15 Apr 2016 05:10:41 +0000 (15:10 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 22 Apr 2016 00:43:24 +0000 (10:43 +1000)
commit2ddea3fd94889331855ff311ff540e0b182dd216
tree77ac4c98098f1d0f765124b438627c8e2ae34503
parent72fe90b8e72e3f759164d2b4b5c60617a8a1a93e
drm/modes: reduce fb_lock to just protecting lists

This reduces the fb_lock to just protecting the num_fb/fb_list.

"Previously fb refcounting, and especially the weak reference
(kref_get_unless_zero) used in fb lookups have been protected by fb_lock.
But with the refactoring to share refcounting in the drm_mode_object base
class that switched to being protected by idr_mutex, which means fb_lock
critical sections can be reduced."

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_crtc.c