OSDN Git Service

scsi: iscsi: Clean up bound endpoints during shutdown
authorMike Christie <michael.christie@oracle.com>
Thu, 16 Jun 2022 22:27:35 +0000 (17:27 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 22 Jun 2022 01:14:53 +0000 (21:14 -0400)
commitda2f132d00d93ba015286b5e8fdcd85cf0346339
tree44e329157060c86e22d04cc597bcc45199ec9216
parent3328333b47f4163504267440ec0a36087a407a5f
scsi: iscsi: Clean up bound endpoints during shutdown

In the next patch we allow drivers to drive session removal during
shutdown. In this case iscsid will not be running, so we need to detect
bound endpoints and disconnect them. This moves the bound ep check so we
now always check.

Link: https://lore.kernel.org/r/20220616222738.5722-4-michael.christie@oracle.com
Tested-by: Nilesh Javali <njavali@marvell.com>
Reviewed-by: Nilesh Javali <njavali@marvell.com>
Signed-off-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_transport_iscsi.c