]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Fix hcall tracepoint recursion
authorAnton Blanchard <anton@samba.org>
Thu, 21 Oct 2010 00:52:12 +0000 (00:52 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 7 Feb 2011 02:06:08 +0000 (13:06 +1100)
commitc5d301ff7deed4fdb9f0d160a5fd24c26b1db4c1
tree80e1e9e5f742e2a67ed4e43e6cc2e2823f27e72d
parentc9f52ab9ec8d2f3ab02b018aa9ccdc88118c75e6
powerpc: Fix hcall tracepoint recursion

Spinlocks on shared processor partitions use H_YIELD to notify the
hypervisor we are waiting on another virtual CPU. Unfortunately this means
the hcall tracepoints can recurse.

The patch below adds a percpu depth and checks it on both the entry and
exit hcall tracepoints.

Signed-off-by: Anton Blanchard <anton@samba.org>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
CC: stable@kernel.org
arch/powerpc/platforms/pseries/lpar.c