diff options
| author | Avi Weiss <thnkslprpt@gmail.com> | 2026-10-22 10:19:34 +0300 |
|---|---|---|
| committer | Keith Busch <kbusch@kernel.org> | 2026-11-06 10:13:46 -0800 |
| commit | 284894b212b5895047c4159525467510d707de5a (patch) | |
| tree | 15a4988503109b01757e804f5f20fddf42e61a34 /tools/perf/scripts/python | |
| parent | 82dd68297483afdc3be48e9d77f2dc4adb7a6941 (diff) | |
nvme-tcp: wait for in-flight TLS handshake callback
When nvme_tcp_start_tls() times out or is interrupted,
tls_handshake_cancel() can return false after handshake_complete()
marks the request completed, but before nvme_tcp_tls_done()
finishes. Error cleanup can then release the queue while the
callback still accesses it.
Wait for queue->tls_complete when cancellation loses, before
continuing cleanup. Preserve the original timeout or signal error.
This follows the cancellation/completion synchronization used
in SunRPC for:
- commit d00e32f84ca1 ("sunrpc: wait for in-flight TLS handshake
callback when cancel loses race")
- commit a89dd5974588 ("SUNRPC: wait for in-flight client TLS
handshake callback")
Fixes: be8e82caa685 ("nvme-tcp: enable TLS handshake upcall")
Signed-off-by: Avi Weiss <thnkslprpt@gmail.com>
Reviewed-by: Hannes Reinecke <hare@kernel.org>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
