Re: [patch]2.4.0-test6 "spinlock" preemption patch

From: Andrea Arcangeli (andrea@suse.de)
Date: Tue Sep 12 2000 - 07:47:36 EST


On Tue, 12 Sep 2000, Alan Cox wrote:

>That code example can in theory deadlock without any patches if the CPU's

Woops I really meant:

        while (test_and_set_bit(0, &lock));
        /* critical section */
        mb();
        clear_bit(0, &lock);

Andrea

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



This archive was generated by hypermail 2b29 : Fri Sep 15 2000 - 21:00:17 EST