linux/drivers/nvme/host
Wilfred Mallawa 5a869d0177 nvme/tcp: handle tls partially sent records in write_space()
With TLS enabled, records that are encrypted and appended to TLS TX
list can fail to see a retry if the underlying TCP socket is busy, for
example, hitting an EAGAIN from tcp_sendmsg_locked(). This is not known
to the NVMe TCP driver, as the TLS layer successfully generated a record.

Typically, the TLS write_space() callback would ensure such records are
retried, but in the NVMe TCP Host driver, write_space() invokes
nvme_tcp_write_space(). This causes a partially sent record in the TLS TX
list to timeout after not being retried.

This patch fixes the above by calling queue->write_space(), which calls
into the TLS layer to retry any pending records.

Fixes: be8e82caa6 ("nvme-tcp: enable TLS handshake upcall")
Signed-off-by: Wilfred Mallawa <wilfred.mallawa@wdc.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
2025-10-16 11:32:04 -07:00
..
Kconfig block-6.16-20250606 2025-06-06 13:12:50 -07:00
Makefile
apple.c nvme: apple: Add Apple A11 support 2025-09-06 10:04:32 +02:00
auth.c nvme-auth: update sc_c in host response 2025-10-14 08:28:31 -07:00
constants.c nvme: fix typo in status code constant for self-test in progress 2025-07-17 13:38:07 +02:00
core.c for-6.18/block-20250929 2025-10-02 10:16:56 -07:00
fabrics.c nvme: spelling fixes 2025-06-04 10:23:28 +02:00
fabrics.h nvme: spelling fixes 2025-06-04 10:23:28 +02:00
fault_inject.c
fc.c nvme-fc: use lock accessing port_state and rport state 2025-09-15 08:52:57 -07:00
fc.h
hwmon.c
ioctl.c for-6.18/block-20250929 2025-10-02 10:16:56 -07:00
multipath.c nvme-multipath: Skip nr_active increments in RETRY disposition 2025-10-09 08:07:01 -07:00
nvme.h block: switch ->getgeo() to struct gendisk 2025-08-13 02:59:29 -04:00
pci.c nvme updates for Linux 6.18 2025-09-23 23:12:20 -06:00
pr.c nvme: fix command limits status code 2025-06-04 09:51:10 +02:00
rdma.c nvme: fix multiple spelling and grammar issues in host drivers 2025-07-17 13:38:06 +02:00
sysfs.c for-6.16/block-20250523 2025-05-26 11:39:36 -07:00
tcp.c nvme/tcp: handle tls partially sent records in write_space() 2025-10-16 11:32:04 -07:00
trace.c
trace.h
zns.c