Re: [rfc][patch] i386: remove comment about barriers

From: Linus Torvalds
Date: Sat Sep 29 2007 - 12:12:27 EST




On Sat, 29 Sep 2007, Nick Piggin wrote:
>
> OK this was going to be a quick patch, but after sleeping on it, I think
> it deserves a better analysis... I can prove the comment is incorrect with a
> test program, but I'm not as sure about my thinking that leads me to call it
> also misleading.

You're 100% right, that comment is total crap.

An lfence is *not* a memory barrier, it's just a read memory barrier.

Although on some microarchitectures they may of course end up being the
same thing.

Linus
-
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/