Re: [Intel-gfx] [CI 4/7] drm/i915: Simplify releasing context reference

2016-12-19 Thread Chris Wilson
On Mon, Dec 19, 2016 at 05:49:46PM +0800, Zhenyu Wang wrote: > On 2016.12.18 15:37:21 +, 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 t

Re: [Intel-gfx] [CI 4/7] drm/i915: Simplify releasing context reference

2016-12-19 Thread Zhenyu Wang
On 2016.12.18 15:37:21 +, 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 Wi

[Intel-gfx] [CI 4/7] drm/i915: Simplify releasing context reference

2016-12-18 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 Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/i