perf: Fix orphan hole
authorPeter Zijlstra <peterz@infradead.org>
Mon, 25 Jan 2016 13:08:45 +0000 (14:08 +0100)
committerIngo Molnar <mingo@kernel.org>
Thu, 28 Jan 2016 19:06:35 +0000 (20:06 +0100)
commit78cd2c748f459739ff864dd9308c0f6caf7f6e41
treeb25470373d9ed5c038833854b466e3725a56cf68
parent45c815f06b80031659c63d7b93e580015d6024dd
perf: Fix orphan hole

We should set event->owner before we install the event,
otherwise there is a hole where the target task can fork() and
we'll not inherit the event because it thinks the event is
orphaned.

Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/events/core.c