Posted Aug 7, 2012 19:44 UTC (Tue) by daglwn (subscriber, #65432)
In reply to: Declaring it volatile by PaulMcKenney
Parent article: ACCESS_ONCE()
If the programmmer is optimizing by using a temporary, the assumption is that the programmer knows what he or she is doing. The optimization is explicit and is an immediate flag to the reader to carefully examine the (existing or new) code for bugs.
I'm not trying to convince you, simply stating what I believe is good programming practice. Maybe I'm wrong. But it's worked for me so far. :)