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)
commit5040b4b7bcc26a311c799d46f67174bcb20d05dd
tree9d0a5656f891ef2a59793df5726fca00fac3a188
parent83f40318dab00e3298a1f6d0b12ac025e84e478d
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