Re: [Linaro-mm-sig] [PATCH 2/3] mutex: add support for reservation style locks

2013-02-14 Thread Maarten Lankhorst
Hey, Op 14-02-13 11:22, Arnd Bergmann schreef: > On Thursday 07 February 2013, Maarten Lankhorst wrote: > > Hi Maarten, > > I cannot help a lot on this patch set, but there are a few things that > I noticed when reading it. > >> Functions: >> -- >> >> mutex_reserve_lock, and

Re: [Linaro-mm-sig] [PATCH 2/3] mutex: add support for reservation style locks

2013-02-14 Thread Daniel Vetter
On Thu, Feb 14, 2013 at 11:22 AM, Arnd Bergmann wrote: > >> These functions will return -EDEADLK instead of -EAGAIN if >> reservation_id is the same as the reservation_id that's attempted to >> lock the mutex with, since in that case you presumably attempted to >> lock the same lock

Re: [Linaro-mm-sig] [PATCH 2/3] mutex: add support for reservation style locks

2013-02-14 Thread Arnd Bergmann
On Thursday 07 February 2013, Maarten Lankhorst wrote: Hi Maarten, I cannot help a lot on this patch set, but there are a few things that I noticed when reading it. > Functions: > -- > > mutex_reserve_lock, and mutex_reserve_lock_interruptible: > Lock a buffer with a reservation_id

Re: [Linaro-mm-sig] [PATCH 2/3] mutex: add support for reservation style locks

2013-02-14 Thread Arnd Bergmann
On Thursday 07 February 2013, Maarten Lankhorst wrote: Hi Maarten, I cannot help a lot on this patch set, but there are a few things that I noticed when reading it. Functions: -- mutex_reserve_lock, and mutex_reserve_lock_interruptible: Lock a buffer with a reservation_id set.

Re: [Linaro-mm-sig] [PATCH 2/3] mutex: add support for reservation style locks

2013-02-14 Thread Daniel Vetter
On Thu, Feb 14, 2013 at 11:22 AM, Arnd Bergmann a...@arndb.de wrote: These functions will return -EDEADLK instead of -EAGAIN if reservation_id is the same as the reservation_id that's attempted to lock the mutex with, since in that case you presumably attempted to lock the same lock

Re: [Linaro-mm-sig] [PATCH 2/3] mutex: add support for reservation style locks

2013-02-14 Thread Maarten Lankhorst
Hey, Op 14-02-13 11:22, Arnd Bergmann schreef: On Thursday 07 February 2013, Maarten Lankhorst wrote: Hi Maarten, I cannot help a lot on this patch set, but there are a few things that I noticed when reading it. Functions: -- mutex_reserve_lock, and