summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorBenjamin Segall <bsegall@google.com>2025-02-14 14:12:20 -0800
committerThomas Gleixner <tglx@linutronix.de>2025-02-18 10:12:49 +0100
commitf99c5bb396b8d1424ed229d1ffa6f596e3b9c36b (patch)
tree0828a646a83c6bda57b3a35f0d96283051ff0224 /tools/perf/scripts/python/export-to-sqlite.py
parent4441b976dfeff0d3579e8da3c0283300c618a553 (diff)
posix-timers: Invoke cond_resched() during exit_itimers()
exit_itimers() loops through every timer in the process to delete it. This requires taking the system-wide hash_lock for each of these timers, and contends with other processes trying to create or delete timers. When a process creates hundreds of thousands of timers, and then exits while other processes contend with it, this can trigger softlockups on CONFIG_PREEMPT=n. Add a cond_resched() invocation into the loop to allow the system to make progress. Signed-off-by: Ben Segall <bsegall@google.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/all/xm2634gg2n23.fsf@google.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions