aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNilesh Javali <[email protected]>2020-04-07 23:43:32 -0700
committerMartin K. Petersen <[email protected]>2020-04-13 21:44:22 -0400
commitb9b97e6903032ec56e6dcbe137a9819b74a17fea (patch)
treed02e352ee4d686773ec0849e8a60a6d1739b18b7
parentc6bfa707207c34674d45235e44e63f9a5801232f (diff)
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/[email protected] Reviewed-by: Lee Duncan <[email protected]> Signed-off-by: Nilesh Javali <[email protected]> Signed-off-by: Manish Rangankar <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
-rw-r--r--drivers/scsi/qedi/qedi_iscsi.c3
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) {