Re: [PATCH 2/3] rtmutex: deboost priority conditionally when rt-mutex unlock

From: Peter Zijlstra
Date: Thu Apr 13 2017 - 10:40:04 EST


On Thu, Apr 13, 2017 at 10:02:53PM +0800, Alex Shi wrote:
> /*
> + * 'current' release this lock, so 'current' should be a higher prio
> + * task than the next top waiter, unless the current prio was gotten
> + * from this top waiter, iff so, we need to deboost 'current' after
> + * the lock release.
> + */
> + if (current->prio == waiter->prio)
> + deboost = true;

This is wrong.