]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc: Fix hcall tracepoint recursion
authorAnton Blanchard <anton@samba.org>
Thu, 21 Oct 2010 00:52:12 +0000 (00:52 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 22:47:20 +0000 (14:47 -0800)
commit3ca30e408a08f9b902d4d7d0422be498584cb966
tree15c9ebd73658fb56f3bada294f603ce96b8241a0
parent1caf470a3c4ab570b38a6e7c339e06f18909ef98
powerpc: Fix hcall tracepoint recursion

commit 57cdfdf829a850a317425ed93c6a576c9ee6329c upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/powerpc/platforms/pseries/lpar.c