Cc: Linus Torvalds <torvalds@...>, Jeremy Fitzhardinge <jeremy@...>, Nick Piggin <nickpiggin@...>, Stefan Richter <stefanr@...>, <paulmck@...>, Peter Zijlstra <peterz@...>, <linux-kernel@...>, David Howells <dhowells@...>
So the result was that barrier()s actually worked? Great.
BTW if you did this work it might be worthwhile to go one further
step: gcc has a test suite where they run small programs and have a
simple facility to scan the resulting assembler code for specific
patterns. If you could bring your examples into that format (as in
being stand alone compiled and have a simple "yes/no" pattern to
check) and let it be included there that might make sure this always
keeps working in the future.
-Andi
--