• Peter Zijlstra's avatar
    perf: Remove/simplify lockdep annotation · 5fa7c8ec
    Peter Zijlstra authored
    Now that the perf_event_ctx_lock_nested() call has moved from
    put_event() into perf_event_release_kernel() the first reason is no
    longer valid as that can no longer happen.
    
    The second reason seems to have been invalidated when Al Viro made fput()
    unconditionally async in the following commit:
    
      4a9d4b02 ("switch fput to task_work_add")
    
    such that munmap()->fput()->release()->perf_release() would no longer happen.
    
    Therefore, remove the annotation. This should increase the efficiency
    of lockdep coverage of perf locking.
    Suggested-by: default avatarAlexander Shishkin <alexander.shishkin@linux.intel.com>
    Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
    Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
    Cc: David Ahern <dsahern@gmail.com>
    Cc: Jiri Olsa <jolsa@redhat.com>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Stephane Eranian <eranian@google.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Vince Weaver <vincent.weaver@maine.edu>
    Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
    5fa7c8ec
core.c 221 KB