From: Steven Rostedt Date: Fri, 11 Dec 2009 04:20:52 +0000 (-0500) Subject: ring-buffer: Move resize integrity check under reader lock X-Git-Tag: v2.6.33-rc1~52^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd7f59435782a02ceb6d16b9ce823dd3345d75ec;p=pandora-kernel.git ring-buffer: Move resize integrity check under reader lock While using an application that does splice on the ftrace ring buffer at start up, I triggered an integrity check failure. Looking into this, I discovered that resizing the buffer performs an integrity check after the buffer is resized. This check unfortunately is preformed after it releases the reader lock. If a reader is reading the buffer it may cause the integrity check to trigger a false failure. This patch simply moves the integrity checker under the protection of the ring buffer reader lock. Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed