On Mon, 16 Aug 1999, Andrea Arcangeli wrote:
>
> Maybe I am dreaming, but it seems to me that the wait_even interface has
> SMP races. To make it SMP safe we should enforce read and write ordering
> in the wait_event code.
The spinlocks and atomic operations implied by "wake_up()" and company
make this a non-issue: a spinlock has to guarantee write ordering anyway,
otherwise it wouldn't be an effective spinlock..
So about half of your patch is unnecessary, but the latter half looks
valid.
Linus
-
Linux SMP list: FIRST see FAQ at http://www.irisa.fr/prive/mentre/smp-faq/
To Unsubscribe: send "unsubscribe linux-smp" to [EMAIL PROTECTED]
- [patch] possible SMP races all over the place in wait_... Andrea Arcangeli
- Re: [patch] possible SMP races all over the place... Linus Torvalds
- Re: [patch] possible SMP races all over the p... Andrea Arcangeli
- Re: [patch] possible SMP races all over the p... Andrea Arcangeli
- Re: [patch] possible SMP races all over t... Alan Cox
- Re: [patch] possible SMP races all ov... Linus Torvalds
- Re: [patch] possible SMP races a... Alan Cox
- Re: [patch] possible SMP races a... Andrea Arcangeli
- Re: [patch] possible SMP races all over t... Jeremy Fitzhardinge
- Re: [patch] possible SMP races all ov... Andrea Arcangeli
- Re: [patch] possible SMP races all over t... Ingo Molnar
- Re: [patch] possible SMP races all ov... David S. Miller
