summaryrefslogtreecommitdiff
path: root/kernel/trace/trace.c
diff options
context:
space:
mode:
authorLai Jiangshan <laijs@cn.fujitsu.com>2009-01-12 11:06:18 +0800
committerIngo Molnar <mingo@elte.hu>2009-01-15 09:46:40 +0100
commit6f3b34402e7282cde49dff395d7ea462bf33bf50 (patch)
tree9f6b01f62bc6065614f3f70aaff11da7f516e383 /kernel/trace/trace.c
parent428aee1460a75197f0190534b4d610450ee59af1 (diff)
downloadlwn-6f3b34402e7282cde49dff395d7ea462bf33bf50.tar.gz
lwn-6f3b34402e7282cde49dff395d7ea462bf33bf50.zip
ring_buffer: reset write when reserve buffer fail
Impact: reset struct buffer_page.write when interrupt storm if struct buffer_page.write is not reset, any succedent committing will corrupted ring_buffer: static inline void rb_set_commit_to_write(struct ring_buffer_per_cpu *cpu_buffer) { ...... cpu_buffer->commit_page->commit = cpu_buffer->commit_page->write; ...... } when "if (RB_WARN_ON(cpu_buffer, next_page == reader_page))", ring_buffer is disabled, but some reserved buffers may haven't been committed. we need reset struct buffer_page.write. when "if (unlikely(next_page == cpu_buffer->commit_page))", ring_buffer is still available, we should not corrupt it. Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com> Signed-off-by: Steven Rostedt <srostedt@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace.c')
0 files changed, 0 insertions, 0 deletions