Re: [PATCH 2/3] rtmutex: Add rt_mutex_init_waiter helper

2016-03-14 Thread Peter Zijlstra
On Tue, Mar 08, 2016 at 10:20:22AM -0800, Davidlohr Bueso wrote: > +++ b/kernel/futex.c > @@ -2778,10 +2778,7 @@ static int futex_wait_requeue_pi(u32 __user *uaddr, > unsigned int flags, >* The waiter is allocated on our stack, manipulated by the requeue >* code while we sleep on

[PATCH 2/3] rtmutex: Add rt_mutex_init_waiter helper

2016-03-08 Thread Davidlohr Bueso
From: Davidlohr Bueso ... encapsulates debug and regular waiter initialization. In the case of rtmutexes, we now also set the waiter to nil until later explicitly set to whatever task. This is safe as the waiter is on the stack and we are doing very basic initialization anyway. Signed-off-by: Da