Skip to content

Commit

Permalink
[SCSI] qla2xxx: Correct PLOGI retry logic.
Browse files Browse the repository at this point in the history
Original code attempts to retry PLOGIs to fcports that are
FCP_TARGETs only.  If the driver never performed a successful
PLOGI/PRLI, the port-type would never be assigned, and the
relogin logic would silently drop the request (and thus the port
would not be recognized and registered).

The fix is relatively straightforward, drop the FCP_TARGET-only
check.

Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
  • Loading branch information
Andrew Vasquez authored and James Bottomley committed Aug 26, 2006
1 parent b2155d0 commit 9c06938
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/scsi/qla2xxx/qla_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -2238,9 +2238,6 @@ qla2x00_do_dpc(void *data)

next_loopid = 0;
list_for_each_entry(fcport, &ha->fcports, list) {
if (fcport->port_type != FCT_TARGET)
continue;

/*
* If the port is not ONLINE then try to login
* to it if we haven't run out of retries.
Expand Down

0 comments on commit 9c06938

Please sign in to comment.