1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/infiniband/ulp
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
..
ipoib RDMA: Split kernel-only global device caps from uverbs device caps 2022-04-06 15:02:13 -03:00
iser scsi: iscsi: Fix session removal on shutdown 2022-06-21 21:14:54 -04:00
isert v5.19 pull request 2022-05-26 21:08:40 -07:00
opa_vnic RDMA/opa: Delete useless module.h include 2022-01-28 13:03:14 -04:00
rtrs RDMA/rtrs-clt: Fix one kernel-doc comment 2022-05-26 10:54:13 -03:00
srp RDMA: Split kernel-only global device caps from uverbs device caps 2022-04-06 15:02:13 -03:00
srpt scsi: target: srpt: Replace enable attr with ops.enable 2021-10-04 23:27:38 -04:00
Makefile RDMA/rtrs: include client and server modules into kernel compilation 2020-05-17 18:57:15 -03:00