Cc: Linus Torvalds <torvalds@...>, Matthew Wilcox <matthew@...>, Trent Piepho <tpiepho@...>, Russell King <rmk+lkml@...>, Benjamin Herrenschmidt <benh@...>, David Miller <davem@...>, <linux-arch@...>, <scottwood@...>, <linuxppc-dev@...>, <alan@...>, <linux-kernel@...>
My comment was precisely about the fact that this sort of argument is
actually FUD. I want one example that is demonstrably wrong, not just
a "how sure are you".
The trouble is that as code gets maintained, using __writel + explicit
barriers is more fragile because some people will change the code, or
add new code, without understanding the barriers. So whenever a
driver gets converted to using __writel + barriers, we will end up
having to watch every change that goes into it forever. Whereas with
the current scheme there's a much smaller set of gotchas to watch out
for, and the gotchas are things that already raise red flags, such as
open-coded locking and any sort of "clever" lockless scheme.
Paul.
--