Skip to content

Fix race conditions in the nvme-tcp driver

Maurizio Lombardi linux-nvme 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 15 repliesIn review
  2. v31 patch 0 repliesSuperseded
  3. v21 patch 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch4 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2nvme-tcp: Prevent infinite loop if socket closes during CONNECTING statedrivers/nvme/host/tcp.c+1 -011 replies
2/2nvme-tcp: do not complete the request if send operation failsdrivers/nvme/host/tcp.c+0 -142 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchLaurence ObermanZhang GuanghuiKeith BuschHannes ReineckeSagi Grimberg
1/2T-b R-b R-b R-b
2/2T-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v4 thread

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

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(-)
Signature · 1 line
2.43.5