mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[SCSI] qla2xxx: Correct regression in relogin code.
Commit 63a8651f25 ([SCSI] qla2xxx:
Correct infinite-login-retry issue.) introduced a small
regression where a successful relogin would result in an fcport's
loop_id to be incorrectly reset to FC_NO_LOOP_ID. Only clear-out
loopid, if retries have been 'truly' exhausted.
Signed-off-by: Andrew Vasquez <[email protected]>
Cc: Stable Tree <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
This commit is contained in:
parent
c6852c4c59
commit
666301e673
1 changed files with 1 additions and 1 deletions
|
|
@ -2373,7 +2373,7 @@ qla2x00_do_dpc(void *data)
|
|||
} else {
|
||||
fcport->login_retry = 0;
|
||||
}
|
||||
if (fcport->login_retry == 0)
|
||||
if (fcport->login_retry == 0 && status != QLA_SUCCESS)
|
||||
fcport->loop_id = FC_NO_LOOP_ID;
|
||||
}
|
||||
if (test_bit(LOOP_RESYNC_NEEDED, &ha->dpc_flags))
|
||||
|
|
|
|||
Loading…
Reference in a new issue