aboutsummaryrefslogtreecommitdiffstats
path: root/include/scsi/libfc.h
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 /include/scsi/libfc.h
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 'include/scsi/libfc.h')
-rw-r--r--include/scsi/libfc.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/scsi/libfc.h b/include/scsi/libfc.h
index 53b38814d38a..aa219514c96b 100644
--- a/include/scsi/libfc.h
+++ b/include/scsi/libfc.h
@@ -77,7 +77,7 @@ do { \
77 77
78#define FC_RPORT_DBG(rport, fmt, args...) \ 78#define FC_RPORT_DBG(rport, fmt, args...) \
79do { \ 79do { \
80 struct fc_rport_libfc_priv *rdata = rport->dd_data; \ 80 struct fc_rport_priv *rdata = rport->dd_data; \
81 struct fc_lport *lport = rdata->local_port; \ 81 struct fc_lport *lport = rdata->local_port; \
82 FC_RPORT_ID_DBG(lport, rport->port_id, fmt, ##args); \ 82 FC_RPORT_ID_DBG(lport, rport->port_id, fmt, ##args); \
83} while (0) 83} while (0)
@@ -177,6 +177,14 @@ enum fc_rport_event {
177 RPORT_EV_LOGO 177 RPORT_EV_LOGO
178}; 178};
179 179
180/*
181 * Temporary definition to prepare for split off from fc_rport_libfc_priv
182 * of a separately-allocated structure called fc_rport_priv. This will
183 * be the primary object for the discovery and rport state machines.
184 * This definition is just to make this patch series easier to review.
185 */
186#define fc_rport_priv fc_rport_libfc_priv
187
180struct fc_rport_operations { 188struct fc_rport_operations {
181 void (*event_callback)(struct fc_lport *, struct fc_rport *, 189 void (*event_callback)(struct fc_lport *, struct fc_rport *,
182 enum fc_rport_event); 190 enum fc_rport_event);