Mike Christie 857b06527f scsi: qedi: Fix failed disconnect handling
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>
2022-04-11 22:09:35 -04:00
..
2022-04-11 22:09:35 -04:00
2022-04-11 22:09:35 -04:00
2022-03-24 19:37:53 -07:00
2022-03-24 19:37:53 -07:00
2021-11-05 08:42:02 -07:00
2022-03-24 19:37:53 -07:00
2022-03-24 19:37:53 -07:00
2022-03-24 19:37:53 -07:00
2021-01-22 21:14:08 -05:00
2021-01-22 21:14:07 -05:00
2022-02-22 21:11:02 -05:00
2021-01-22 21:14:08 -05:00
2022-01-14 14:37:34 +01:00
2020-09-02 22:49:06 -04:00
2021-10-16 21:45:56 -04:00
2022-02-22 21:11:02 -05:00
2021-04-13 00:20:48 -04:00
2022-01-25 00:09:41 -05:00
2022-02-22 21:11:02 -05:00
2021-03-24 23:03:43 -04:00
2022-03-24 19:37:53 -07:00
2022-01-22 08:33:37 +02:00
2022-02-02 07:49:59 -07:00
2022-02-22 21:11:08 -05:00
2022-03-08 19:40:00 -07:00
2022-03-24 19:37:53 -07:00
2021-12-22 23:41:13 -05:00
2022-03-24 19:37:53 -07:00
2021-04-13 00:20:48 -04:00