diff options
| author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2026-09-07 16:41:07 +0300 |
|---|---|---|
| committer | Mika Westerberg <mika.westerberg@linux.intel.com> | 2026-09-14 10:53:45 +0200 |
| commit | 7049eb52c81645df81b1867e48bda89f11e585b8 (patch) | |
| tree | 5eef3e85c6a9499f6adbf2fa48243cbd5ce8585a /tools/perf/python/stackcollapse.py | |
| parent | de9d89b4086129cd575640ed111b18d43c01a5d4 (diff) | |
| download | linux-next-7049eb52c81645df81b1867e48bda89f11e585b8.tar.gz linux-next-7049eb52c81645df81b1867e48bda89f11e585b8.zip | |
thunderbolt: stream: Do not hold the lock while busy polling
When in busy poll mode with a reader and writer, and there is nothing
completed on the rings both sides keep taking and releasing the lock
from each other and this can cause stalls. Avoid this by calling the new
API function tb_ring_poll_pending() that only returns true if there is
anything available in which case they can take the lock and know there
is now work to do.
Reported-by: Alan Borzeszkowski <alan.borzeszkowski@linux.intel.com>
Assisted-by: LLM
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'tools/perf/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
