Declaring it volatile
Posted Aug 2, 2012 21:14 UTC (Thu) by
corbet (editor, #1)
In reply to:
ACCESS_ONCE() by thedevil
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.
(
Log in to post comments)