scsi: qla2xxx: edif: Fix slow session teardown
authorQuinn Tran <qutran@marvell.com>
Wed, 8 Jun 2022 11:58:48 +0000 (04:58 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 10 Jun 2022 17:04:05 +0000 (13:04 -0400)
commitbcf536072f7475c65f21fd1681e94f99c04f9d15
tree6738fa6fe4eda2319fd315d85f2821676caceb38
parent37be3f9d6993a721bc019f03c97ea0fe66319997
scsi: qla2xxx: edif: Fix slow session teardown

User experience slow recovery when target device went through a stop/start
of the authentication application (app_stop/app_start).

Between the period of app_stop and app_start on the target device, target
device choose to send ELS Reject for any receive AUTH ELS command.  At this
time, authentication application does not do ELS reject if it encounters
error.

Therefore, AUTH ELS reject signify authentication application is not
running. If driver passes up the AUTH ELS Reject to the authentication
application, then it would result in authentication application
retrying/resending the same AUTH ELS command again + delay.

As a work around, driver should trigger a session tear down where it tells
the local authentication application to also tear down.  At the next
relogin, both sides are then synchronized.

Link: https://lore.kernel.org/r/20220608115849.16693-10-njavali@marvell.com
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>
drivers/scsi/qla2xxx/qla_isr.c