]> git.karo-electronics.de Git - karo-tx-linux.git/commit
perf: Fix inherit vs. context rotation bug
authorThomas Gleixner <tglx@linutronix.de>
Wed, 24 Nov 2010 09:05:55 +0000 (10:05 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Dec 2010 21:33:25 +0000 (13:33 -0800)
commit03aff981d067ceb1358ba53df7a787d12fef579a
tree9ae2938c97870d4d8d1d046948b86b6a98cbeb78
parentfc359f622b4ffd5e61d317bde1544bb48b6cd6d4
perf: Fix inherit vs. context rotation bug

commit dddd3379a619a4cb8247bfd3c94ca9ae3797aa2e upstream.

It was found that sometimes children of tasks with inherited events had
one extra event. Eventually it turned out to be due to the list rotation
no being exclusive with the list iteration in the inheritance code.

Cure this by temporarily disabling the rotation while we inherit the events.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/perf_event.h
kernel/perf_event.c