[SCSI] qla2xxx: Correct PLOGI retry logic.
authorAndrew Vasquez <andrew.vasquez@qlogic.com>
Wed, 23 Aug 2006 21:54:54 +0000 (14:54 -0700)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Sat, 26 Aug 2006 14:26:27 +0000 (09:26 -0500)
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>
drivers/scsi/qla2xxx/qla_os.c

index 1e2b95bac830d8e02b88c273d160ac860fec1b83..65cbe2f5eea24c110438c4404e85e5cba09214bc 100644 (file)
@@ -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.