Patch "scsi: lpfc: Fix NVMe I/O failover to non-optimized path" has been added to the 5.15-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    scsi: lpfc: Fix NVMe I/O failover to non-optimized path

to the 5.15-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     scsi-lpfc-fix-nvme-i-o-failover-to-non-optimized-pat.patch
and it can be found in the queue-5.15 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 3e64c3b56245926108f1b202068d76ee145c0beb
Author: James Smart <jsmart2021@xxxxxxxxx>
Date:   Fri Sep 10 16:31:52 2021 -0700

    scsi: lpfc: Fix NVMe I/O failover to non-optimized path
    
    [ Upstream commit b507357f79171fb4fb4e732ca43a1f30bc5aab1d ]
    
    Currently, we hold off unregistering with NVMe transport layer until GID_FT
    or ADISC completes upon receipt of RSCN. In the ADISC discovery routine,
    for nodes not found in the GID_FT response, the nodes are unregistered from
    the SCSI transport but not UNREG_RPI'd. Meaning outstanding WQEs continue
    to be outstanding and were not failed back to the OS. If an NVMe device,
    this mean there wasn't initial termination of the I/Os so they could be
    issued on a different NVMe path.
    
    Fix by unregistering the RPI so that I/O is cancelled.
    
    Link: https://lore.kernel.org/r/20210910233159.115896-8-jsmart2021@xxxxxxxxx
    Fixes: 0614568361b0 ("scsi: lpfc: Delay unregistering from transport until GIDFT or ADISC completes")
    Co-developed-by: Justin Tee <justin.tee@xxxxxxxxxxxx>
    Signed-off-by: Justin Tee <justin.tee@xxxxxxxxxxxx>
    Signed-off-by: James Smart <jsmart2021@xxxxxxxxx>
    Signed-off-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/scsi/lpfc/lpfc_els.c b/drivers/scsi/lpfc/lpfc_els.c
index 0a68e565147a7..666b0a1b558ac 100644
--- a/drivers/scsi/lpfc/lpfc_els.c
+++ b/drivers/scsi/lpfc/lpfc_els.c
@@ -6215,6 +6215,7 @@ lpfc_els_disc_adisc(struct lpfc_vport *vport)
 			 * from backend
 			 */
 			lpfc_nlp_unreg_node(vport, ndlp);
+			lpfc_unreg_rpi(vport, ndlp);
 			continue;
 		}
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux