]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: iscsi: Allow iscsi_if_stop_conn() to be called from kernel
authorMike Christie <michael.christie@oracle.com>
Thu, 16 Jun 2022 22:27:34 +0000 (17:27 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 22 Jun 2022 01:14:53 +0000 (21:14 -0400)
commit4f4876c6b8c0da0d739dd4a6486ac8d284991271
treefc0cd5d226779b8b758c16eb163b9cb01158677a
parent64f2f6e030cd591c28e0a0cebb972dd5b6233ee7
scsi: iscsi: Allow iscsi_if_stop_conn() to be called from kernel

iscsi_if_stop_conn() is only called from the userspace interface but in a
subsequent commit we will want to call it from the kernel interface to
allow drivers like qedi to remove sessions from inside the kernel during
shutdown. This removes the iscsi_uevent code from iscsi_if_stop_conn() so we
can call it in a new helper.

Link: https://lore.kernel.org/r/20220616222738.5722-3-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