• Peter Zijlstra's avatar
    perf: Update locking order · 07c4a776
    Peter Zijlstra authored
    Update the locking order to note that ctx::lock nests inside of
    child_mutex, as per:
    
      perf_ioctl():                ctx::mutex
      -> perf_event_for_each():    event::child_mutex
        -> _perf_event_enable():   ctx::lock
    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>
    07c4a776
core.c 220 KB