aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libfc/fc_disc.c
diff options
context:
space:
mode:
authorJoe Eykholt <jeykholt@cisco.com>2009-08-25 17:00:34 -0400
committerJames Bottomley <James.Bottomley@suse.de>2009-09-10 13:07:39 -0400
commitab28f1fd3b0d14c1bd693e640decd711d5e6642a (patch)
tree3d7b051d7ab8b6d7fb7d936f95e336bf25f26832 /drivers/scsi/libfc/fc_disc.c
parent090eb6c41aa74273d3f0721637cff738cfd80669 (diff)
[SCSI] libfc: prepare to split off struct fc_rport_priv from fc_rport_libfc_priv
While the I/O and LLD interfaces use fc_rport_libfc_priv, the disc and rport interfaces will use fc_rport_priv, which will be separately allocated. Change the disc and rport usage of fc_rport_libfc_priv to fc_rport_priv. Use #define temporarily to make both names equivalent until a subsequent patch splits them. 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>
Diffstat (limited to 'drivers/scsi/libfc/fc_disc.c')
-rw-r--r--drivers/scsi/libfc/fc_disc.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/scsi/libfc/fc_disc.c b/drivers/scsi/libfc/fc_disc.c
index 6fabf66972b9..4c8d893af7bd 100644
--- a/drivers/scsi/libfc/fc_disc.c
+++ b/drivers/scsi/libfc/fc_disc.c
@@ -65,7 +65,7 @@ struct fc_rport *fc_disc_lookup_rport(const struct fc_lport *lport,
65{ 65{
66 const struct fc_disc *disc = &lport->disc; 66 const struct fc_disc *disc = &lport->disc;
67 struct fc_rport *rport, *found = NULL; 67 struct fc_rport *rport, *found = NULL;
68 struct fc_rport_libfc_priv *rdata; 68 struct fc_rport_priv *rdata;
69 int disc_found = 0; 69 int disc_found = 0;
70 70
71 list_for_each_entry(rdata, &disc->rports, peers) { 71 list_for_each_entry(rdata, &disc->rports, peers) {
@@ -94,7 +94,7 @@ void fc_disc_stop_rports(struct fc_disc *disc)
94{ 94{
95 struct fc_lport *lport; 95 struct fc_lport *lport;
96 struct fc_rport *rport; 96 struct fc_rport *rport;
97 struct fc_rport_libfc_priv *rdata, *next; 97 struct fc_rport_priv *rdata, *next;
98 98
99 lport = disc->lport; 99 lport = disc->lport;
100 100
@@ -126,7 +126,7 @@ static void fc_disc_rport_callback(struct fc_lport *lport,
126 struct fc_rport *rport, 126 struct fc_rport *rport,
127 enum fc_rport_event event) 127 enum fc_rport_event event)
128{ 128{
129 struct fc_rport_libfc_priv *rdata = rport->dd_data; 129 struct fc_rport_priv *rdata = rport->dd_data;
130 struct fc_disc *disc = &lport->disc; 130 struct fc_disc *disc = &lport->disc;
131 131
132 FC_DISC_DBG(disc, "Received a %d event for port (%6x)\n", event, 132 FC_DISC_DBG(disc, "Received a %d event for port (%6x)\n", event,
@@ -170,7 +170,7 @@ static void fc_disc_recv_rscn_req(struct fc_seq *sp, struct fc_frame *fp,
170{ 170{
171 struct fc_lport *lport; 171 struct fc_lport *lport;
172 struct fc_rport *rport; 172 struct fc_rport *rport;
173 struct fc_rport_libfc_priv *rdata; 173 struct fc_rport_priv *rdata;
174 struct fc_els_rscn *rp; 174 struct fc_els_rscn *rp;
175 struct fc_els_rscn_page *pp; 175 struct fc_els_rscn_page *pp;
176 struct fc_seq_els_data rjt_data; 176 struct fc_seq_els_data rjt_data;
@@ -309,7 +309,7 @@ static void fc_disc_recv_req(struct fc_seq *sp, struct fc_frame *fp,
309static void fc_disc_restart(struct fc_disc *disc) 309static void fc_disc_restart(struct fc_disc *disc)
310{ 310{
311 struct fc_rport *rport; 311 struct fc_rport *rport;
312 struct fc_rport_libfc_priv *rdata, *next; 312 struct fc_rport_priv *rdata, *next;
313 struct fc_lport *lport = disc->lport; 313 struct fc_lport *lport = disc->lport;
314 314
315 FC_DISC_DBG(disc, "Restarting discovery\n"); 315 FC_DISC_DBG(disc, "Restarting discovery\n");
@@ -400,7 +400,7 @@ static int fc_disc_new_target(struct fc_disc *disc,
400 struct fc_rport_identifiers *ids) 400 struct fc_rport_identifiers *ids)
401{ 401{
402 struct fc_lport *lport = disc->lport; 402 struct fc_lport *lport = disc->lport;
403 struct fc_rport_libfc_priv *rdata; 403 struct fc_rport_priv *rdata;
404 int error = 0; 404 int error = 0;
405 405
406 if (rport && ids->port_name) { 406 if (rport && ids->port_name) {
@@ -458,7 +458,7 @@ static int fc_disc_new_target(struct fc_disc *disc,
458static void fc_disc_del_target(struct fc_disc *disc, struct fc_rport *rport) 458static void fc_disc_del_target(struct fc_disc *disc, struct fc_rport *rport)
459{ 459{
460 struct fc_lport *lport = disc->lport; 460 struct fc_lport *lport = disc->lport;
461 struct fc_rport_libfc_priv *rdata = rport->dd_data; 461 struct fc_rport_priv *rdata = rport->dd_data;
462 list_del(&rdata->peers); 462 list_del(&rdata->peers);
463 lport->tt.rport_logoff(rport); 463 lport->tt.rport_logoff(rport);
464} 464}
@@ -580,7 +580,7 @@ static int fc_disc_gpn_ft_parse(struct fc_disc *disc, void *buf, size_t len)
580 int error = 0; 580 int error = 0;
581 struct fc_disc_port dp; 581 struct fc_disc_port dp;
582 struct fc_rport *rport; 582 struct fc_rport *rport;
583 struct fc_rport_libfc_priv *rdata; 583 struct fc_rport_priv *rdata;
584 584
585 lport = disc->lport; 585 lport = disc->lport;
586 586
@@ -774,7 +774,7 @@ static void fc_disc_single(struct fc_disc *disc, struct fc_disc_port *dp)
774{ 774{
775 struct fc_lport *lport; 775 struct fc_lport *lport;
776 struct fc_rport *new_rport; 776 struct fc_rport *new_rport;
777 struct fc_rport_libfc_priv *rdata; 777 struct fc_rport_priv *rdata;
778 778
779 lport = disc->lport; 779 lport = disc->lport;
780 780