Hi, On Fri, Sep 2, 2011 at 11:04 PM, Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> wrote: > When the CPU execute statements out of order, it is careful to make > certain that the final results are the same as they would be if the > statements were executed in order. Otherwise simple programs like Yes, the order is kept by cpu itself, so the 1st wmb() can be removed. Thanks for your detailed explanation. > > x = 1; > y = x + 2; > > wouldn't work -- y might not always get set to 3. thanks, -- Ming Lei -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html