diff options
author | Arun Easi <arun.easi@qlogic.com> | 2015-08-04 13:38:02 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Odin.com> | 2015-08-26 20:49:23 -0400 |
commit | a1d0285ecb61800a9e6808f716b880eae95f14bc (patch) | |
tree | d59607f635233ce4ab110dbeb2516227c2862b84 | |
parent | 63e322aaa6a00536055558ac1307b2919ee57aef (diff) |
qla2xxx: Fix missing device login retries.
On certain conditions, login failures will just invoke
qla2x00_mark_device_lost() with the intend to do login again;
but if login_retry has been set already, that would fail to set the
relogin needed flag which is required to wakeup the DPC to retry.
Signed-off-by: Arun Easi <arun.easi@qlogic.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
-rw-r--r-- | drivers/scsi/qla2xxx/qla_os.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index 0b90fac255d3..0d0ff33d010f 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c | |||
@@ -3258,9 +3258,10 @@ void qla2x00_mark_device_lost(scsi_qla_host_t *vha, fc_port_t *fcport, | |||
3258 | if (!do_login) | 3258 | if (!do_login) |
3259 | return; | 3259 | return; |
3260 | 3260 | ||
3261 | set_bit(RELOGIN_NEEDED, &vha->dpc_flags); | ||
3262 | |||
3261 | if (fcport->login_retry == 0) { | 3263 | if (fcport->login_retry == 0) { |
3262 | fcport->login_retry = vha->hw->login_retry_count; | 3264 | fcport->login_retry = vha->hw->login_retry_count; |
3263 | set_bit(RELOGIN_NEEDED, &vha->dpc_flags); | ||
3264 | 3265 | ||
3265 | ql_dbg(ql_dbg_disc, vha, 0x2067, | 3266 | ql_dbg(ql_dbg_disc, vha, 0x2067, |
3266 | "Port login retry %8phN, id = 0x%04x retry cnt=%d.\n", | 3267 | "Port login retry %8phN, id = 0x%04x retry cnt=%d.\n", |