Re: [Intel-gfx] [PATCH 09/16] drm/i915: Simplify releasing context reference

2016-12-09 Thread Tvrtko Ursulin
On 07/12/2016 13:58, Chris Wilson wrote: A few users only take the struct_mutex in order to release a reference to a context. We can expose a kref_put_mutex() wrapper in order to simplify these users, and optimise taking of the mutex to the final unref. Signed-off-by: Chris Wilson

[Intel-gfx] [PATCH 09/16] drm/i915: Simplify releasing context reference

2016-12-07 Thread Chris Wilson
A few users only take the struct_mutex in order to release a reference to a context. We can expose a kref_put_mutex() wrapper in order to simplify these users, and optimise taking of the mutex to the final unref. Signed-off-by: Chris Wilson ---