From: Steven Rostedt Date: Mon, 12 May 2008 19:20:56 +0000 (+0200) Subject: ftrace: selftest protect againt max flip X-Git-Tag: v2.6.27-rc1~1102^2^2~1^2~63 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30afdcb1de0a37a2086145a82ca3febebe47d019;p=pandora-kernel.git ftrace: selftest protect againt max flip There is a slight race condition in the selftest where the max update of the wakeup and irqs/preemption off tests can be doing a max update as the buffers are being tested. If this happens the system can crash with a GPF. This patch adds the max update spinlock around the checking of the buffers to prevent such a race. Signed-off-by: Steven Rostedt Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- Reading git-diff-tree failed