OrangePi_CM5/drivers/scsi/qedi
Mike Christie bf28bba304 scsi: qedi: Fix failed disconnect handling
[ Upstream commit 857b06527f707f5df634b854898a191b5c1d0272 ]

We set the qedi_ep state to EP_STATE_OFLDCONN_START when the ep is
created. Then in qedi_set_path we kick off the offload work. If userspace
times out the connection and calls ep_disconnect, qedi will only flush the
offload work if the qedi_ep state has transitioned away from
EP_STATE_OFLDCONN_START. If we can't connect we will not have transitioned
state and will leave the offload work running, and we will free the qedi_ep
from under it.

This patch just has us init the work when we create the ep, then always
flush it.

Link: https://lore.kernel.org/r/20220408001314.5014-10-michael.christie@oracle.com
Tested-by: Manish Rangankar <mrangankar@marvell.com>
Reviewed-by: Lee Duncan <lduncan@suse.com>
Reviewed-by: Chris Leech <cleech@redhat.com>
Acked-by: Manish Rangankar <mrangankar@marvell.com>
Signed-off-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-27 13:53:54 +02:00
..
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile
…
qedi.h scsi: qedi: Fix cleanup session block/unblock use 2021-07-20 16:05:41 +02:00
qedi_dbg.c
…
qedi_dbg.h
…
qedi_debugfs.c
…
qedi_fw.c scsi: qedi: Fix TMF session block/unblock use 2021-07-20 16:05:41 +02:00
qedi_fw_api.c
…
qedi_fw_iscsi.h
…
qedi_fw_scsi.h
…
qedi_gbl.h
…
qedi_hsi.h
…
qedi_iscsi.c scsi: qedi: Fix failed disconnect handling 2022-04-27 13:53:54 +02:00
qedi_iscsi.h
…
qedi_main.c scsi: qedi: Fix error codes in qedi_alloc_global_queues() 2021-09-18 13:40:14 +02:00
qedi_nvm_iscsi_cfg.h
…
qedi_sysfs.c
…
qedi_version.h
…