diff options
author | Masami Hiramatsu <[email protected]> | 2020-07-28 16:34:00 +0900 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2020-07-28 13:19:05 +0200 |
commit | 112a0e4171e111e963aada3fe790c71accf4d705 (patch) | |
tree | d74254e8ac496dc145e75e3c355a4f8df2986ae9 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | e89d4ca1df630378bde3e36c42001b755b0044fe (diff) |
kprobes: Remove unnecessary module_mutex locking from kprobe_optimizer()
Since we already lock both kprobe_mutex and text_mutex in the optimizer,
text will not be changed and the module unloading will be stopped
inside kprobes_module_callback().
The mutex_lock() has originally been introduced to avoid conflict with text modification,
at that point we didn't hold text_mutex.
But after:
f1c6ece23729 ("kprobes: Fix potential deadlock in kprobe_optimizer()")
We started holding the text_mutex and don't need the modules mutex anyway.
So remove the module_mutex locking.
[ mingo: Amended the changelog. ]
Suggested-by: Ingo Molnar <[email protected]>
Signed-off-by: Masami Hiramatsu <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Cc: Jarkko Sakkinen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions