From: Daniel Vetter Date: Wed, 14 Aug 2013 22:02:42 +0000 (+0200) Subject: drm/prime: shrink critical section protected by prime lock X-Git-Tag: v3.12-rc1~136^2~54 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdf655de47b0d17ee2efc3bea5f617445ff77adc;p=pandora-kernel.git drm/prime: shrink critical section protected by prime lock When exporting a gem object as a dma-buf the critical section for the per-fd prime lock is just the adding (and in case of errors, removing) of the handle to the per-fd lookup cache. So restrict the critical section to just that part of the function. This simplifies later reordering. Signed-off-by: Daniel Vetter Signed-off-by: Dave Airlie --- Reading git-diff-tree failed