Re: [RFC][PATCH 5/8] rtmutex: Clean up

2016-06-14 Thread Juri Lelli
On 14/06/16 14:32, Peter Zijlstra wrote: > On Tue, Jun 14, 2016 at 01:08:13PM +0100, Juri Lelli wrote: > > > + postunlock = rt_mutex_futex_unlock(&pi_state->pi_mutex, &wake_q); > > > > > > /* > > >* First unlock HB so the waiter does not spin on it once he got woken > > > + * up. Then wake

Re: [RFC][PATCH 5/8] rtmutex: Clean up

2016-06-14 Thread Peter Zijlstra
On Tue, Jun 14, 2016 at 01:08:13PM +0100, Juri Lelli wrote: > > + postunlock = rt_mutex_futex_unlock(&pi_state->pi_mutex, &wake_q); > > > > /* > > * First unlock HB so the waiter does not spin on it once he got woken > > +* up. Then wakeup the waiter by calling rt_mutex_postunlock(

Re: [RFC][PATCH 5/8] rtmutex: Clean up

2016-06-14 Thread Juri Lelli
Hi, On 07/06/16 21:56, Peter Zijlstra wrote: > Previous patches changed the meaning of the return value of > rt_mutex_slowunlock(); update comments and code to reflect this. > > Signed-off-by: Peter Zijlstra (Intel) > --- > kernel/futex.c | 12 ++-- > kernel/locking/r