[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170413143952.ty4dw5mvyfnhaqgh@hirez.programming.kicks-ass.net>
Date: Thu, 13 Apr 2017 16:39:52 +0200
From: Peter Zijlstra <peterz@...radead.org>
To: Alex Shi <alex.shi@...aro.org>
Cc: mingo@...hat.com, corbet@....net,
"open list:LOCKING PRIMITIVES" <linux-kernel@...r.kernel.org>,
Steven Rostedt <rostedt@...dmis.org>,
Sebastian Siewior <bigeasy@...utronix.de>,
Thomas Gleixner <tglx@...utronix.de>
Subject: Re: [PATCH 2/3] rtmutex: deboost priority conditionally when
rt-mutex unlock
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.
Powered by blists - more mailing lists