Re: Question about memory barriers

From: Alan Stern
Date: Thu Feb 02 2006 - 16:47:20 EST


On Thu, 2 Feb 2006, Roland Dreier wrote:

> Most of this is correct, except that mb() is stronger than just rmb()
> and wmb() put together. All memory operations before the mb() will
> complete before any operations after the mb(). A better way to
> understand this is to look at the sparc64 definition:
>
> #define mb() \
> membar_safe("#LoadLoad | #LoadStore | #StoreStore | #StoreLoad")

Thanks for the explanation. Is there any appropriate place, say in
Documentation/, where these things could be spelled out more completely?

Alan Stern

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