From: Daniel Vetter Date: Tue, 11 Dec 2012 15:51:35 +0000 (+0100) Subject: drm: optimize drm_framebuffer_remove X-Git-Tag: v3.9-rc1~83^2~38^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b62584e366ebcb3adffefad373a5abc4c4b677ca;p=pandora-kernel.git drm: optimize drm_framebuffer_remove Now that all framebuffer usage is properly refcounted, we are no longer required to hold the modeset locks while dropping the last reference. Hence implemented a fastpath which avoids the potential stalls associated with grabbing mode_config.lock for the case where there's no other reference around. Explain in a big comment why it is safe. Also update kerneldocs with the new locking rules around drm_framebuffer_remove. Reviewed-by: Rob Clark Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed