Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

scsi: qla2xxx: edif: Fix no logout on delete for N2N

The driver failed to send implicit logout on session delete. For edif, this
failed to flush any lingering SA index in FW.

Set a flag to turn on implicit logout early in the session recovery to make
sure the logout will go out in case of error.

Link: https://lore.kernel.org/r/20220608115849.16693-8-njavali@marvell.com
Fixes: 4de067e5df12 ("scsi: qla2xxx: edif: Add N2N support for EDIF")
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Quinn Tran <qutran@marvell.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Quinn Tran and committed by
Martin K. Petersen
ec538eb8 a8fdfb0b

+3
+3
drivers/scsi/qla2xxx/qla_iocb.c
··· 2882 2882 sp->name, res, sp->handle, fcport->d_id.b24, fcport->port_name); 2883 2883 2884 2884 fcport->flags &= ~(FCF_ASYNC_SENT|FCF_ASYNC_ACTIVE); 2885 + /* For edif, set logout on delete to ensure any residual key from FW is flushed.*/ 2886 + fcport->logout_on_delete = 1; 2887 + fcport->chip_reset = vha->hw->base_qpair->chip_reset; 2885 2888 2886 2889 if (sp->flags & SRB_WAKEUP_ON_COMP) 2887 2890 complete(&lio->u.els_plogi.comp);