Declaring it volatile
Posted Aug 2, 2012 21:14 UTC (Thu) by corbet
In reply to: ACCESS_ONCE()
Parent article: ACCESS_ONCE()
Because that would pessimize all accesses to that field. In general, use of volatile is strongly discouraged in the kernel; there's really only a few places where it is really needed.
to post comments)