On Tue, 2015-06-09 at 23:33 +0200, Oleg Nesterov wrote: > > Yes, but wmb() is cheap on x86... Perhaps we can make this code > "obviously correct" ?
I'll reply to the rest a bit later; got to run some errands first. The 'problem' of course is ARM/PPC etc.. we would like to keep this generic code fast, even for the loosely ordered machines. And wmb() is certainly not cheap for them; although not as bad as a full 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/