Re: spin_lock forgets to clobber memory and other smp fixes [was

From: kuznet@ms2.inr.ac.ru
Date: Thu Sep 07 2000 - 12:51:26 EST


Hello!

> Well, now GCC does CSE across "asm" and will eliminate memory loads,
> even though it may not move them! I suspect it always did CSE across
> "asm" and we just never got hit by the bug.

dummy_lock trick is equivalent to "memory" clobber.

So that there is no real bug.

Alexey
-
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 : Thu Sep 07 2000 - 21:00:31 EST