Re: [PATCH] rtmutex: multiple candidate owners without unrelated boosting

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Thomas Gleixner
Date: Wednesday, December 15, 2010 - 12:47 am

On Wed, 15 Dec 2010, Lai Jiangshan wrote:

Which is good.
 

Even better.
 

I think that's a non realistic scenario. If you have something which
is changing the priority of multiple waiters with high frequency, then
the rtmutex code is the least of your worries.


You mean with the current code. Right, that's not pretty but not
really an issue either. I inustrumented that on RT and the situation
happens twice out of 12 Mio.

I'm way more interested in simplifying the code than in handling this
corner case.
 

There is none.


That's not an argument at all.
 

Have you ever been able to observe that live lock ? If yes, what did
it take to produce it ?
 
 
Err? If it's not getting the lock then P is hardly the top waiter
simply because the requeue in lock->wait_list did not happen
yet. That's fully serialized.
 

No, that's only necessary because you allow multiple possible owners
and you can end up with a lock owner which has less priority than the
highest priority waiter. If you restrict that to the highest prio
waiter then no boosting is necessary at all.

Thanks,

	tglx


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] rtmutex: multiple candidate owners without unr ..., Thomas Gleixner, (Wed Dec 15, 12:47 am)