diff options
author | Mike Christie <[email protected]> | 2022-04-07 19:13:13 -0500 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2022-04-11 22:09:35 -0400 |
commit | 857b06527f707f5df634b854898a191b5c1d0272 (patch) | |
tree | ef695d0b7658dee164546623d8a438f146d50832 /fs/autofs/dev-ioctl.c | |
parent | 44ac97109e42f87b1a34954704b81b6c8eca80c4 (diff) |
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/[email protected]
Tested-by: Manish Rangankar <[email protected]>
Reviewed-by: Lee Duncan <[email protected]>
Reviewed-by: Chris Leech <[email protected]>
Acked-by: Manish Rangankar <[email protected]>
Signed-off-by: Mike Christie <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'fs/autofs/dev-ioctl.c')
0 files changed, 0 insertions, 0 deletions