commit | 8573636ea794fa088f459429e65e47d7776532cf | [log] [tgz] |
---|---|---|
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | Tue Nov 17 14:03:11 2015 -0500 |
committer | Steven Rostedt <rostedt@goodmis.org> | Tue Nov 24 09:29:15 2015 -0500 |
tree | d6d64d4272ae43e061f97c8a3c0c4aa523ed4a0e | |
parent | 3cbd6a43be932e56907abd21091314dc044175f2 [diff] |
ring-buffer: Use READ_ONCE() for most tail_page access As cpu_buffer->tail_page may be modified by interrupts at almost any time, the flow of logic is very important. Do not let gcc get smart with re-reading cpu_buffer->tail_page by adding READ_ONCE() around most of its accesses. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>