aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libfc/fc_lport.c
diff options
context:
space:
mode:
authorJoe Eykholt <jeykholt@cisco.com>2009-08-25 17:01:12 -0400
committerJames Bottomley <James.Bottomley@suse.de>2009-09-10 13:07:43 -0400
commit4c0f62b5679321b2e5572cf541ffb9f7b344d47c (patch)
tree0c4fba12e9098c63cfdc37dac15313f313887b1a /drivers/scsi/libfc/fc_lport.c
parent629f44279d169f29b084d406e9f1c33314f220fa (diff)
[SCSI] libfc: rename rport event CREATED to READY
Remote ports will become READY more than once after ADISC is implemented in a later patch. The event callback that has been called "CREATED" will mean "READY". Rename it now in preparation for those changes. 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_lport.c')
-rw-r--r--drivers/scsi/libfc/fc_lport.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/libfc/fc_lport.c b/drivers/scsi/libfc/fc_lport.c
index a7fe6b8d38b8..016f771ebe69 100644
--- a/drivers/scsi/libfc/fc_lport.c
+++ b/drivers/scsi/libfc/fc_lport.c
@@ -147,14 +147,14 @@ static void fc_lport_rport_callback(struct fc_lport *lport,
147 rdata->ids.port_id); 147 rdata->ids.port_id);
148 148
149 switch (event) { 149 switch (event) {
150 case RPORT_EV_CREATED: 150 case RPORT_EV_READY:
151 if (rdata->ids.port_id == FC_FID_DIR_SERV) { 151 if (rdata->ids.port_id == FC_FID_DIR_SERV) {
152 mutex_lock(&lport->lp_mutex); 152 mutex_lock(&lport->lp_mutex);
153 if (lport->state == LPORT_ST_DNS) { 153 if (lport->state == LPORT_ST_DNS) {
154 lport->dns_rp = rdata; 154 lport->dns_rp = rdata;
155 fc_lport_enter_rpn_id(lport); 155 fc_lport_enter_rpn_id(lport);
156 } else { 156 } else {
157 FC_LPORT_DBG(lport, "Received an CREATED event " 157 FC_LPORT_DBG(lport, "Received an READY event "
158 "on port (%6x) for the directory " 158 "on port (%6x) for the directory "
159 "server, but the lport is not " 159 "server, but the lport is not "
160 "in the DNS state, it's in the " 160 "in the DNS state, it's in the "