diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2009-05-29 08:25:58 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-05-29 10:21:52 -0400 |
commit | bbbee90829304d156c12b171c0ac7e6e1aba8b90 (patch) | |
tree | ec0a1a8c69a5c909a57227915734d1e55678eb5c /kernel/fork.c | |
parent | 665c2142a94202881a3c11cbaee6506cb10ada2d (diff) |
perf_counter: Ammend cleanup in fork() fail
When fork() fails we cannot use perf_counter_exit_task() since that
assumes to operate on current. Write a new helper that cleans up
unused/clean contexts.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: John Kacur <jkacur@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/fork.c')
-rw-r--r-- | kernel/fork.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index c07c3335ceac..23bf757ed321 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -1298,7 +1298,7 @@ bad_fork_cleanup_semundo: | |||
1298 | bad_fork_cleanup_audit: | 1298 | bad_fork_cleanup_audit: |
1299 | audit_free(p); | 1299 | audit_free(p); |
1300 | bad_fork_cleanup_policy: | 1300 | bad_fork_cleanup_policy: |
1301 | perf_counter_exit_task(p); | 1301 | perf_counter_free_task(p); |
1302 | #ifdef CONFIG_NUMA | 1302 | #ifdef CONFIG_NUMA |
1303 | mpol_put(p->mempolicy); | 1303 | mpol_put(p->mempolicy); |
1304 | bad_fork_cleanup_cgroup: | 1304 | bad_fork_cleanup_cgroup: |