• Peter Zijlstra's avatar
    perf_counter: Fix inheritance cleanup code · 8bc20959
    Peter Zijlstra authored
    Clean up code that open-coded the list_{add,del}_counter() code in
    __perf_counter_exit_task() which consequently diverged. This could
    lead to software counter crashes.
    
    Also, fold the ctx->nr_counter inc/dec into those functions and clean
    up some of the related code.
    
    [ Impact: fix potential sw counter crash, cleanup ]
    Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
    Cc: Srivatsa Vaddagiri <vatsa@in.ibm.com>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
    Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
    Cc: Marcelo Tosatti <mtosatti@redhat.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    8bc20959
perf_counter.c 81.4 KB