[SCSI] libfc: fix indefinite rport restart
authorJoe Eykholt <jeykholt@cisco.com>
Fri, 11 Jun 2010 23:44:57 +0000 (16:44 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 27 Jul 2010 17:01:53 +0000 (12:01 -0500)
commitf034260db330bb3ffc815fcb682b1c84aca09591
tree4570860e30b7dfcaedceff905eeb1ab244b1a504
parent4b2164d4d212e437c9f080023a67f8f9356d2c4c
[SCSI] libfc: fix indefinite rport restart

Remote ports were restarting indefinitely after getting
rejects in PRLI.

Fix by adding a counter of restarts and limiting that with
the port login retry limit as well.

Signed-off-by: Joe Eykholt <jeykholt@cisco.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/libfc/fc_rport.c
include/scsi/libfc.h