perf: Fix orphan hole
authorPeter Zijlstra <[email protected]>
Mon, 25 Jan 2016 13:08:45 +0000 (14:08 +0100)
committerIngo Molnar <[email protected]>
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 <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Signed-off-by: Ingo Molnar <[email protected]>
kernel/events/core.c