Skip to content

nvme-tcp: strict pdu pacing to avoid send stalls on TLS

Chris Leech requested to merge cleech/centos-stream-9:cs9-nvme-tls into main

JIRA: https://issues.redhat.com/browse/RHEL-35558

commit 50abcc179e0c9ca667feb223b26ea406d5c4c556 Author: Hannes Reinecke hare@kernel.org Date: Thu Apr 18 12:39:45 2024 +0200

nvme-tcp: strict pdu pacing to avoid send stalls on TLS

TLS requires a strict pdu pacing via MSG_EOR to signal the end
of a record and subsequent encryption. If we do not set MSG_EOR
at the end of a sequence the record won't be closed, encryption
doesn't start, and we end up with a send stall as the message
will never be passed on to the TCP layer.
So do not check for the queue status when TLS is enabled but
rather make the MSG_MORE setting dependent on the current
request only.

Signed-off-by: Hannes Reinecke <hare@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Keith Busch <kbusch@kernel.org>

Signed-off-by: Chris Leech cleech@redhat.com

Merge request reports