]> git.baikalelectronics.ru Git - kernel.git/commit
drm/prime: shrink critical section protected by prime lock
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 14 Aug 2013 22:02:42 +0000 (00:02 +0200)
committerDave Airlie <airlied@redhat.com>
Wed, 21 Aug 2013 02:53:46 +0000 (12:53 +1000)
commit8d1bc7c4a5e0e6b6ce168d2646ddc716e56eafe7
tree90a2ad1bff0cb718967a151ef735d1d15565210a
parent8377f8dd9565a52b5000c70cf2e0bf5f1ac97773
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 <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_prime.c