diff options
author | Nilesh Javali <njavali@marvell.com> | 2020-04-08 08:43:32 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-04-14 03:44:22 +0200 |
commit | b9b97e6903032ec56e6dcbe137a9819b74a17fea (patch) | |
tree | d02e352ee4d686773ec0849e8a60a6d1739b18b7 /drivers/scsi/qedi | |
parent | scsi: qedi: Add modules param to enable qed iSCSI debug (diff) | |
download | linux-b9b97e6903032ec56e6dcbe137a9819b74a17fea.tar.xz linux-b9b97e6903032ec56e6dcbe137a9819b74a17fea.zip |
scsi: qedi: Fix termination timeouts in session logout
The destroy connection ramrod timed out during session logout. Fix the
wait delay for graceful vs abortive termination as per the FW requirements.
Link: https://lore.kernel.org/r/20200408064332.19377-7-mrangankar@marvell.com
Reviewed-by: Lee Duncan <lduncan@suse.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Signed-off-by: Manish Rangankar <mrangankar@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/qedi')
-rw-r--r-- | drivers/scsi/qedi/qedi_iscsi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/qedi/qedi_iscsi.c b/drivers/scsi/qedi/qedi_iscsi.c index 80c724bf16d7..b867a143d263 100644 --- a/drivers/scsi/qedi/qedi_iscsi.c +++ b/drivers/scsi/qedi/qedi_iscsi.c @@ -1065,6 +1065,9 @@ static void qedi_ep_disconnect(struct iscsi_endpoint *ep) break; } + if (!abrt_conn) + wait_delay += qedi->pf_params.iscsi_pf_params.two_msl_timer; + qedi_ep->state = EP_STATE_DISCONN_START; ret = qedi_ops->destroy_conn(qedi->cdev, qedi_ep->handle, abrt_conn); if (ret) { |