Re: [Linux-ia64] spin_unlock() problem

Jes Sorensen
2003-04-04T05:04:42Z

>>>>> "Jes" = Jes Sorensen <jes@wildopensource.com> writes:

Jes> Hi, I have been tracing a problem with tty->count hitting an
Jes> unidenfied state and I am starting to ponder if our current
Jes> spin_unlock() implementation is sufficient.

[snip]

Jes> Consider the following example:

Actually that example isn't valid, this one should be:

cpu1()
{
spin_lock(&bleh);
*a = foo;
spin_unlock(&bleh);
*b = bar;
}

cpu2()
{
if (*b = bar)
boink(*a);
}

Jes