OSDN Git Service

[SCSI] libfc: Retry a rejected PRLI request
authorBhanu Prakash Gollapudi <bprakash@broadcom.com>
Fri, 11 Jun 2010 23:43:49 +0000 (16:43 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 27 Jul 2010 17:01:44 +0000 (12:01 -0500)
Retry upto max_rport_retry_count when a target responds with
LS_RJT for a PRLI request.

Signed-off-by: Bhanu Prakash Gollapudi <bprakash@broadcom.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

index 39e440f..3ee497a 100644 (file)
@@ -739,7 +739,7 @@ static void fc_rport_prli_resp(struct fc_seq *sp, struct fc_frame *fp,
 
        } else {
                FC_RPORT_DBG(rdata, "Bad ELS response for PRLI command\n");
-               fc_rport_enter_delete(rdata, RPORT_EV_FAILED);
+               fc_rport_error_retry(rdata, fp);
        }
 
 out: