WSL2-Linux-Kernel/drivers/scsi/bnx2i
Mike Christie 31500e9027 scsi: iscsi: Fix session removal on shutdown
When the system is shutting down, iscsid is not running so we will not get
a response to the ISCSI_ERR_INVALID_HOST error event. The system shutdown
will then hang waiting on userspace to remove the session.

This has libiscsi force the destruction of the session from the kernel when
iscsi_host_remove() is called from a driver's shutdown callout.

This fixes a regression added in qedi boot with commit d1f2ce7763 ("scsi:
qedi: Fix host removal with running sessions") which made qedi use the
common session removal function that waits on userspace instead of rolling
its own kernel based removal.

Link: https://lore.kernel.org/r/20220616222738.5722-7-michael.christie@oracle.com
Fixes: d1f2ce7763 ("scsi: qedi: Fix host removal with running sessions")
Tested-by: Nilesh Javali <njavali@marvell.com>
Reviewed-by: Lee Duncan <lduncan@suse.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>
2022-06-21 21:14:54 -04:00
..
57xx_iscsi_constants.h bnx2i: Rebranding bnx2i driver 2014-07-25 17:16:59 -04:00
57xx_iscsi_hsi.h bnx2i: Rebranding bnx2i driver 2014-07-25 17:16:59 -04:00
Kconfig scsi: bnx2i: Requires MMU 2020-12-02 12:59:04 -05:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
bnx2i.h scsi: bnx2i: Switch to attribute groups 2021-10-16 21:45:55 -04:00
bnx2i_hwi.c scsi: iscsi: Merge suspend fields 2022-04-11 22:09:35 -04:00
bnx2i_init.c scsi: bnx2i: Remove unnecessary mutex_init() 2020-09-22 20:21:02 -04:00
bnx2i_iscsi.c scsi: iscsi: Fix session removal on shutdown 2022-06-21 21:14:54 -04:00
bnx2i_sysfs.c scsi: bnx2i: Switch to attribute groups 2021-10-16 21:45:55 -04:00