• P
    perf_counter: Ammend cleanup in fork() fail · bbbee908
    Peter Zijlstra 提交于
    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: NPeter 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: NIngo Molnar <mingo@elte.hu>
    bbbee908
fork.c 41.6 KB