Messages in this thread | | | Date | Fri, 22 Sep 2000 10:35:16 -0700 (PDT) | From | Linus Torvalds <> | Subject | Re: GCC proposal for "@" asm constraint |
| |
On Fri, 22 Sep 2000, Andrea Arcangeli wrote: > > This patch fixes the spinlock problems in read_lock/write_lock and also some > alpha SMP race where clear_bit isn't enforcing a memory barrier
Why would clear_bit() be a memory barrier?
Anything that expects clear_bit() to be a memory barrier should be fixed.
Anything that wants a spinlock should use the spinlocks. Not the bit ops. They are atomic, but they are not memory barriers.
Linus
- 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/
| |