]> bbs.cooldavid.org Git - net-next-2.6.git/commit
ring-buffer: Move access to commit_page up into function used
authorSteven Rostedt <srostedt@redhat.com>
Tue, 17 Nov 2009 13:43:01 +0000 (08:43 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 17 Nov 2009 13:43:01 +0000 (08:43 -0500)
commit5a50e33cc916f6a81cb96f0f24f6a88c9ab78b79
treecc00c32414107ade5492be200fcb1bc882968cae
parent8b2a5dac7859dd1954095fce8b6445c3ceb36ef6
ring-buffer: Move access to commit_page up into function used

With the change of the way we process commits. Where a commit only happens
at the outer most level, and that we don't need to worry about
a commit ending after the rb_start_commit() has been called, the code
use to grab the commit page before the tail page to prevent a possible
race. But this race no longer exists with the rb_start_commit()
rb_end_commit() interface.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/ring_buffer.c