[PATCH] nvme-tcp: wait for in-flight TLS handshake callback

Keith Busch kbusch at kernel.org
Fri Nov 6 10:15:49 PST 2026


On Thu, 22 Oct 2026 10:19:34 +0300, Avi Weiss wrote:
> 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.
> 
> [...]

Thanks, applied to nvme-7.4.

[1/1] nvme-tcp: wait for in-flight TLS handshake callback
      commit: 284894b212b5895047c4159525467510d707de5a
--
Keith Busch <kbusch at kernel.org>




More information about the Linux-nvme mailing list