[PATCH 4/4] drm/prime: cleanup prime/gem locking interaction

2015-10-15 Thread Dave Airlie
From: Dave Airlie calling drm_gem_handle_delete would cause an attempt to retake the prime lock. move code around so we never need to do that. This patch allocates the member structure early, so there is no failure path that requires calling drm_gem_handle_delete. Signed-off-by: Dave Airlie --

[PATCH 4/4] drm/prime: cleanup prime/gem locking interaction

2015-10-15 Thread Daniel Vetter
On Thu, Oct 15, 2015 at 11:51:41AM +1000, Dave Airlie wrote: > From: Dave Airlie > > calling drm_gem_handle_delete would cause an attempt to retake > the prime lock. > > move code around so we never need to do that. This patch allocates > the member structure early, so there is no failure path t