[PATCH V4 0/2] Fix race conditions in the nvme-tcp driver

Maurizio Lombardi mlombard at redhat.com
Fri Apr 4 01:27:59 PDT 2025


Patch 1 fixes a race condition when the sockets get closed
while the controller is transitioning from CONNECTING to LIVE state.

Patch 2 fixes a command double completion when a send operation
fails despite the fact that the command has been received by the target.


v4: added patch 2/2

v3: Do not check for -EPIPE, just call nvme_tcp_error_recovery()

v2: commit message: clarify where the error recovery is started


Maurizio Lombardi (2):
  nvme-tcp: Prevent infinite loop if socket closes during CONNECTING
    state
  nvme-tcp: do not fail the request if send fails

 drivers/nvme/host/tcp.c | 15 +--------------
 1 file changed, 1 insertion(+), 14 deletions(-)

-- 
2.43.5




More information about the Linux-nvme mailing list