summaryrefslogtreecommitdiff
path: root/tools/perf/python/stackcollapse.py
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2026-09-15 18:55:27 +0300
committerMika Westerberg <mika.westerberg@linux.intel.com>2026-09-24 06:41:48 +0200
commit8d55710a8c439c45737f30ccf626d04241b95303 (patch)
tree9ff3807956b6a0d86ddb903d294542e46bf862f1 /tools/perf/python/stackcollapse.py
parent5da91c3694b8060b651aab5d95b2e4729c6e2b56 (diff)
downloadlinux-next-8d55710a8c439c45737f30ccf626d04241b95303.tar.gz
linux-next-8d55710a8c439c45737f30ccf626d04241b95303.zip
thunderbolt: stream: Improve CLOSE handling on write side
If there is only a writer in the stream (i.e the other side just reads and this side just writes) then if the other side is closed the CLOSE packet does is never picked up from the writers RX ring because we do not complete the RX poll. Currently we do that only when something is actually reading the stream. To make this work on write-only stream, complete the RX poll also during ->write_iter(), and then make the stream return -EPIPE to the writer. While there make sdev->closed to use READ/WRITE_ONCE() analogous to other flags. 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