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

From: David S. Miller (davem@redhat.com)
Date: Sat Aug 05 2000 - 21:37:33 EDT

  • Next message: Philipp Rumpf: "Re: test6-lowlatency-D1 results: 50msec + hangs ...."

       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/



    This archive was generated by hypermail 2b29 : Sat Aug 05 2000 - 21:54:47 EDT