tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: mutexes, locks and so on...

On 11/17/10 14:34, Andrew Doran wrote:
On Wed, Nov 17, 2010 at 07:55:13AM -0500, Thor Lancelot Simon wrote:
On Wed, Nov 17, 2010 at 01:31:51PM +0100, Johnny Billquist wrote:

But you could perhaps argue that this is a bug in itself, and
mutex_vector_enter should not take a spin mutex on its own when a
mutex_spin_enter function exist.

I don't think that's right.  I don't believe spin mutexes are _required_
to be taken with mutex_spin_enter() -- mutex_enter() should work fine.
It has to, because it is supposed to be invisible to the programmer
whether mutexes are spin or adaptive, except for the initial IPL used
to allocate them.

At least, that is how I understand it.  Which may be wrong.

Thor is right.  Johnny have you read the manual page? :-)

People should read better what I write... :-)


Home | Main Index | Thread Index | Old Index