[PATCH] dma-buf: Provide wrappers for reservation's lock

2016-12-12 Thread Daniel Vetter
On Sun, Dec 11, 2016 at 04:05:21PM -0500, Alex Deucher wrote: > On Sun, Dec 11, 2016 at 12:12 PM, Chris Wilson > wrote: > > On Tue, Nov 15, 2016 at 10:43:34PM +0100, Daniel Vetter wrote: > >> On Tue, Nov 15, 2016 at 03:46:42PM +, Chris Wilson wrote: > >> > Joonas complained that writing ww_mu

[PATCH] dma-buf: Provide wrappers for reservation's lock

2016-12-11 Thread Chris Wilson
On Tue, Nov 15, 2016 at 10:43:34PM +0100, Daniel Vetter wrote: > On Tue, Nov 15, 2016 at 03:46:42PM +, Chris Wilson wrote: > > Joonas complained that writing ww_mutex_lock(&resv->lock, ctx) was too > > intrusive compared to reservation_object_lock(resv, ctx); > > > > Signed-off-by: Chris Wilso

[PATCH] dma-buf: Provide wrappers for reservation's lock

2016-12-11 Thread Alex Deucher
On Sun, Dec 11, 2016 at 12:12 PM, Chris Wilson wrote: > On Tue, Nov 15, 2016 at 10:43:34PM +0100, Daniel Vetter wrote: >> On Tue, Nov 15, 2016 at 03:46:42PM +, Chris Wilson wrote: >> > Joonas complained that writing ww_mutex_lock(&resv->lock, ctx) was too >> > intrusive compared to reservatio

[PATCH] dma-buf: Provide wrappers for reservation's lock

2016-11-15 Thread Daniel Vetter
On Tue, Nov 15, 2016 at 03:46:42PM +, Chris Wilson wrote: > Joonas complained that writing ww_mutex_lock(&resv->lock, ctx) was too > intrusive compared to reservation_object_lock(resv, ctx); > > Signed-off-by: Chris Wilson > Cc: Sumit Semwal > Cc: Joonas Lahtinen > --- > include/linux/rese

[PATCH] dma-buf: Provide wrappers for reservation's lock

2016-11-15 Thread Chris Wilson
Joonas complained that writing ww_mutex_lock(&resv->lock, ctx) was too intrusive compared to reservation_object_lock(resv, ctx); Signed-off-by: Chris Wilson Cc: Sumit Semwal Cc: Joonas Lahtinen --- include/linux/reservation.h | 34 ++ 1 file changed, 34 insertio