Re: test6-lowlatency-D1 results: 50msec + hangs ....

David S. Miller (davem@redhat.com)
Sat, 5 Aug 2000 18:37:33 -0700


Date: Sun, 6 Aug 2000 02:10:46 +0100
From: Philipp Rumpf <prumpf@parcelfarce.linux.theplanet.co.uk>

> No matter what constant answer you decide to give on UP it will always
> be incorrect. I know, because there were old bits of assertions in

You're right. But no-one actually cares about whether a lock is held -
they care about whether they're holding it or someone else is holding it
or no-one's holding it.

while (spin_is_locked(&lock)) {
/* Wait for others to release their references. */
barrier();
}

This type of code does happen, what is the correct return value so
that spin_is_locked() handles this kind of case?

Later,
David S. Miller
davem@redhat.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/