Re: memory barrier question

From: David Howells
Date: Thu Sep 16 2010 - 13:59:38 EST


Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:

> Therefore:
>
> A = 5
> LOCK
>
> UNLOCK
> B = 6
>
> May be observed as:
>
> LOCK
> B = 6
> A = 5
> UNLOCK

Yeah, you're right.

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