Re: [PATCH] futex: move debug_rt_mutex_free_waiter() further down
From: Peter Zijlstra
Date: Mon Mar 13 2017 - 05:17:10 EST
On Wed, Mar 08, 2017 at 04:29:02PM +0100, Sebastian Andrzej Siewior wrote:
> kernel/futex.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/kernel/futex.c b/kernel/futex.c
> index 00ec4a01d3f5..73abfe0da4d0 100644
> --- a/kernel/futex.c
> +++ b/kernel/futex.c
> @@ -3046,11 +3046,11 @@ static int futex_wait_requeue_pi(u32 __user *uaddr, unsigned int flags,
> WARN_ON(!q.pi_state);
> pi_mutex = &q.pi_state->pi_mutex;
> ret = rt_mutex_wait_proxy_lock(pi_mutex, to, &rt_waiter);
> - debug_rt_mutex_free_waiter(&rt_waiter);
>
> spin_lock(q.lock_ptr);
> if (ret && !rt_mutex_cleanup_proxy_lock(pi_mutex, &rt_waiter))
> ret = 0;
> + debug_rt_mutex_free_waiter(&rt_waiter);
>
> /*
> * Fixup the pi_state owner and possibly acquire the lock if we
>
Thanks, folded.