diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2015-11-17 20:03:11 +0100 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2015-11-24 15:29:15 +0100 |
commit | 8573636ea794fa088f459429e65e47d7776532cf (patch) | |
tree | d6d64d4272ae43e061f97c8a3c0c4aa523ed4a0e /kernel/up.c | |
parent | ftracetest: Add instance create and delete test (diff) | |
download | linux-8573636ea794fa088f459429e65e47d7776532cf.tar.xz linux-8573636ea794fa088f459429e65e47d7776532cf.zip |
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>
Diffstat (limited to 'kernel/up.c')
0 files changed, 0 insertions, 0 deletions