]> git.baikalelectronics.ru Git - kernel.git/commit
perf: Always destroy groups on exit
authorPeter Zijlstra <peterz@infradead.org>
Mon, 5 May 2014 09:41:02 +0000 (11:41 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 7 May 2014 11:44:18 +0000 (13:44 +0200)
commita5d92c61202a772a50e21ee8dd42f55d0e5558c3
tree97610b4279df288805c9118077ef37bc44f075c1
parentb03a3581835fd9f6aaac2e24d936306974370640
perf: Always destroy groups on exit

Commit b48c406ccd80 ("perf: Fix tear-down of inherited group events")
states that we need to destroy groups for inherited events, but it
doesn't make any sense to not also destroy groups for normal events.

And while it usually makes no difference (the normal events won't
leak, and its very likely all the group events will die in quick
succession) it does make the code more consistent and closes a
potential hole for trouble.

Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-426egt8zmsm12d2q8k2xz4tt@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/events/core.c