Skip to content

Fix incorrect backport of nvme-fc ioerr_work cancel_work_sync()

Jaskaran Singh linux-nvme lkml stable 1 version Applied

Status from this message: This is a note to let you know that I've just added the patch titled

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2Revert "nvme: nvme-fc: Ensure ->ioerr_work is cancelled in nvme_fc_delete_ctrl()"drivers/nvme/host/fc.c+1 -11 reply
2/2nvme: nvme-fc: Ensure ->ioerr_work is cancelled in nvme_fc_delete_ctrl()drivers/nvme/host/fc.c+1 -11 reply

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchMarco PatalanoJustin Tee
1/2
2/2T-b T-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 6.1.y 0/2] Fix incorrect backport of nvme-fc ioerr_work cancel_work_sync()

The backport of upstream commit 0a2c5495b6d1 ("nvme: nvme-fc: Ensure ->ioerr_work is cancelled in nvme_fc_delete_ctrl()") to linux-6.1.y was incorrectly applied as commit 3d81beae4753.

The original upstream fix moves the cancel_work_sync(&ctrl->ioerr_work) call within nvme_fc_delete_ctrl() to after nvme_fc_delete_association(), so that ->ioerr_work is not running when the nvme_fc_ctrl object is freed. However, the stable backport mistakenly placed the cancel_work_sync() call in nvme_fc_reset_ctrl_work() instead of nvme_fc_delete_ctrl(), leaving the original bug unfixed while introducing an unnecessary change to the reset path.

This series reverts the broken backport and then applies the fix correctly.

Jaskaran Singh (2):
Revert "nvme: nvme-fc: Ensure ->ioerr_work is cancelled in nvme_fc_delete_ctrl()"
nvme: nvme-fc: Ensure ->ioerr_work is cancelled in nvme_fc_delete_ctrl()

 drivers/nvme/host/fc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.43.7