mirror of
https://github.com/torvalds/linux.git
synced 2024-12-16 08:02:17 +00:00
857b06527f
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> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
qedi_dbg.c | ||
qedi_dbg.h | ||
qedi_debugfs.c | ||
qedi_fw_api.c | ||
qedi_fw_iscsi.h | ||
qedi_fw_scsi.h | ||
qedi_fw.c | ||
qedi_gbl.h | ||
qedi_hsi.h | ||
qedi_iscsi.c | ||
qedi_iscsi.h | ||
qedi_main.c | ||
qedi_nvm_iscsi_cfg.h | ||
qedi_sysfs.c | ||
qedi_version.h | ||
qedi.h |