diff options
author | Barret Rhoden <[email protected]> | 2020-04-14 18:29:20 -0400 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2020-04-30 20:14:36 +0200 |
commit | 2ed6edd33a214bca02bd2b45e3fc3038a059436b (patch) | |
tree | fecc8c994d7afd07581c2a56ab07c617e9304150 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 3a4ac121c2cacbf97d493fa3bc42ead88657abe4 (diff) |
perf: Add cond_resched() to task_function_call()
Under rare circumstances, task_function_call() can repeatedly fail and
cause a soft lockup.
There is a slight race where the process is no longer running on the cpu
we targeted by the time remote_function() runs. The code will simply
try again. If we are very unlucky, this will continue to fail, until a
watchdog fires. This can happen in a heavily loaded, multi-core virtual
machine.
Reported-by: [email protected]
Signed-off-by: Barret Rhoden <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions