diff options
| author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2026-09-15 18:55:27 +0300 |
|---|---|---|
| committer | Mika Westerberg <mika.westerberg@linux.intel.com> | 2026-09-24 06:41:48 +0200 |
| commit | 8d55710a8c439c45737f30ccf626d04241b95303 (patch) | |
| tree | 9ff3807956b6a0d86ddb903d294542e46bf862f1 /tools/perf/scripts/python | |
| parent | 5da91c3694b8060b651aab5d95b2e4729c6e2b56 (diff) | |
| download | linux-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/scripts/python')
0 files changed, 0 insertions, 0 deletions
