Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 173614
b: refs/heads/master
c: 8f550f9
h: refs/heads/master
v: v3
  • Loading branch information
Chris Leech authored and James Bottomley committed Dec 4, 2009
1 parent b003c4c commit f74b024
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 17 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b7a727f1af953b00352d3a4b6c458c6e2872f94b
refs/heads/master: 8f550f937e9fdafa5c37e348e214aecec851ef3f
2 changes: 1 addition & 1 deletion trunk/drivers/scsi/libfc/fc_disc.c
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ static void fc_disc_gpn_ft_req(struct fc_disc *disc)
disc, lport->e_d_tov))
return;
err:
fc_disc_error(disc, fp);
fc_disc_error(disc, NULL);
}

/**
Expand Down
4 changes: 3 additions & 1 deletion trunk/drivers/scsi/libfc/fc_elsct.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ static struct fc_seq *fc_elsct_send(struct fc_lport *lport,
did = FC_FID_DIR_SERV;
}

if (rc)
if (rc) {
fc_frame_free(fp);
return NULL;
}

fc_fill_fc_hdr(fp, r_ctl, did, fc_host_port_id(lport->host), fh_type,
FC_FC_FIRST_SEQ | FC_FC_END_SEQ | FC_FC_SEQ_INIT, 0);
Expand Down
7 changes: 2 additions & 5 deletions trunk/drivers/scsi/libfc/fc_fcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,6 @@ static int fc_fcp_cmd_send(struct fc_lport *lp, struct fc_fcp_pkt *fsp,

seq = lp->tt.exch_seq_send(lp, fp, resp, fc_fcp_pkt_destroy, fsp, 0);
if (!seq) {
fc_frame_free(fp);
rc = -1;
goto unlock;
}
Expand Down Expand Up @@ -1316,7 +1315,6 @@ static void fc_fcp_rec(struct fc_fcp_pkt *fsp)
fc_fcp_pkt_hold(fsp); /* hold while REC outstanding */
return;
}
fc_frame_free(fp);
retry:
if (fsp->recov_retry++ < FC_MAX_RECOV_RETRY)
fc_fcp_timer_set(fsp, FC_SCSI_REC_TOV);
Expand Down Expand Up @@ -1564,10 +1562,9 @@ static void fc_fcp_srr(struct fc_fcp_pkt *fsp, enum fc_rctl r_ctl, u32 offset)

seq = lp->tt.exch_seq_send(lp, fp, fc_fcp_srr_resp, NULL,
fsp, jiffies_to_msecs(FC_SCSI_REC_TOV));
if (!seq) {
fc_frame_free(fp);
if (!seq)
goto retry;
}

fsp->recov_seq = seq;
fsp->xfer_len = offset;
fsp->xfer_contig_end = offset;
Expand Down
8 changes: 4 additions & 4 deletions trunk/drivers/scsi/libfc/fc_lport.c
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,7 @@ static void fc_lport_enter_scr(struct fc_lport *lport)

if (!lport->tt.elsct_send(lport, FC_FID_FCTRL, fp, ELS_SCR,
fc_lport_scr_resp, lport, lport->e_d_tov))
fc_lport_error(lport, fp);
fc_lport_error(lport, NULL);
}

/**
Expand Down Expand Up @@ -1186,7 +1186,7 @@ static void fc_lport_enter_rpn_id(struct fc_lport *lport)
if (!lport->tt.elsct_send(lport, FC_FID_DIR_SERV, fp, FC_NS_RPN_ID,
fc_lport_rpn_id_resp,
lport, lport->e_d_tov))
fc_lport_error(lport, fp);
fc_lport_error(lport, NULL);
}

static struct fc_rport_operations fc_lport_rport_ops = {
Expand Down Expand Up @@ -1340,7 +1340,7 @@ static void fc_lport_enter_logo(struct fc_lport *lport)

if (!lport->tt.elsct_send(lport, FC_FID_FLOGI, fp, ELS_LOGO,
fc_lport_logo_resp, lport, lport->e_d_tov))
fc_lport_error(lport, fp);
fc_lport_error(lport, NULL);
}

/**
Expand Down Expand Up @@ -1456,7 +1456,7 @@ void fc_lport_enter_flogi(struct fc_lport *lport)

if (!lport->tt.elsct_send(lport, FC_FID_FLOGI, fp, ELS_FLOGI,
fc_lport_flogi_resp, lport, lport->e_d_tov))
fc_lport_error(lport, fp);
fc_lport_error(lport, NULL);
}

/* Configure a fc_lport */
Expand Down
10 changes: 5 additions & 5 deletions trunk/drivers/scsi/libfc/fc_rport.c
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ static void fc_rport_enter_plogi(struct fc_rport_priv *rdata)

if (!lport->tt.elsct_send(lport, rdata->ids.port_id, fp, ELS_PLOGI,
fc_rport_plogi_resp, rdata, lport->e_d_tov))
fc_rport_error_retry(rdata, fp);
fc_rport_error_retry(rdata, NULL);
else
kref_get(&rdata->kref);
}
Expand Down Expand Up @@ -793,7 +793,7 @@ static void fc_rport_enter_prli(struct fc_rport_priv *rdata)

if (!lport->tt.elsct_send(lport, rdata->ids.port_id, fp, ELS_PRLI,
fc_rport_prli_resp, rdata, lport->e_d_tov))
fc_rport_error_retry(rdata, fp);
fc_rport_error_retry(rdata, NULL);
else
kref_get(&rdata->kref);
}
Expand Down Expand Up @@ -889,7 +889,7 @@ static void fc_rport_enter_rtv(struct fc_rport_priv *rdata)

if (!lport->tt.elsct_send(lport, rdata->ids.port_id, fp, ELS_RTV,
fc_rport_rtv_resp, rdata, lport->e_d_tov))
fc_rport_error_retry(rdata, fp);
fc_rport_error_retry(rdata, NULL);
else
kref_get(&rdata->kref);
}
Expand Down Expand Up @@ -919,7 +919,7 @@ static void fc_rport_enter_logo(struct fc_rport_priv *rdata)

if (!lport->tt.elsct_send(lport, rdata->ids.port_id, fp, ELS_LOGO,
fc_rport_logo_resp, rdata, lport->e_d_tov))
fc_rport_error_retry(rdata, fp);
fc_rport_error_retry(rdata, NULL);
else
kref_get(&rdata->kref);
}
Expand Down Expand Up @@ -1006,7 +1006,7 @@ static void fc_rport_enter_adisc(struct fc_rport_priv *rdata)
}
if (!lport->tt.elsct_send(lport, rdata->ids.port_id, fp, ELS_ADISC,
fc_rport_adisc_resp, rdata, lport->e_d_tov))
fc_rport_error_retry(rdata, fp);
fc_rport_error_retry(rdata, NULL);
else
kref_get(&rdata->kref);
}
Expand Down

0 comments on commit f74b024

Please sign in to comment.