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)
committerChanho Park <chanho61.park@samsung.com>
Fri, 21 Nov 2014 10:12:24 +0000 (19:12 +0900)
commit9c6b5ed8e6b674b076c9d500e81ce6e45a88da56
tree59534d8fc92736b191c460b106759371bf34cd85
parent40c3e8bfa246528c23e700c946e1f3e74c15dc27
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