On Tue, Oct 06, 2015 at 02:39:02PM -0700, H. Peter Anvin wrote: > However, I think one of the major uses for cmpxchg_double() is for page > table manipulation, and for that it isn't clear that a compiler barrier > is needed nor desired.
See mm/slub.c, that uses cmpxchg_double() (the LOCK prefixed one) and one would expect that to also include a compiler barrier. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/