]> git.baikalelectronics.ru Git - kernel.git/commit
ring-buffer: Make addition of pages in ring buffer atomic
authorVaibhav Nagarnaik <vnagarnaik@google.com>
Fri, 4 May 2012 01:59:51 +0000 (18:59 -0700)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 16 May 2012 20:25:51 +0000 (16:25 -0400)
commitd3f4b29030d682d985fedc4fc949ab91de87e07a
tree9d0a5656f891ef2a59793df5726fca00fac3a188
parent7452527f5cb83b2cce8b22ee7a71638cebd05bb1
ring-buffer: Make addition of pages in ring buffer atomic

This patch adds the capability to add new pages to a ring buffer
atomically while write operations are going on. This makes it possible
to expand the ring buffer size without reinitializing the ring buffer.

The new pages are attached between the head page and its previous page.

Link: http://lkml.kernel.org/r/1336096792-25373-2-git-send-email-vnagarnaik@google.com
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Laurent Chavey <chavey@google.com>
Cc: Justin Teravest <teravest@google.com>
Cc: David Sharp <dhsharp@google.com>
Signed-off-by: Vaibhav Nagarnaik <vnagarnaik@google.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/ring_buffer.c