aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libfc/fc_lport.c
diff options
context:
space:
mode:
authorJoe Eykholt <jeykholt@cisco.com>2009-08-25 17:03:21 -0400
committerJames Bottomley <James.Bottomley@suse.de>2009-09-10 13:07:59 -0400
commitf657d299cf05883e23e12a69e86842da1df378ad (patch)
tree3593d2054bd361f28593eea12c83868709013b0c /drivers/scsi/libfc/fc_lport.c
parent25b37b981e706c6df72c28c94f7787c3ea0cd343 (diff)
[SCSI] libfc: improve debug messages for ELS response handlers
Improve lport and rport debug messages to indicate whether the response is LS_ACC, LS_RJT, closed, or timeout. 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.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/scsi/libfc/fc_lport.c b/drivers/scsi/libfc/fc_lport.c
index d3f4e0c34f5..3f2f7239014 100644
--- a/drivers/scsi/libfc/fc_lport.c
+++ b/drivers/scsi/libfc/fc_lport.c
@@ -1006,13 +1006,13 @@ static void fc_lport_rft_id_resp(struct fc_seq *sp, struct fc_frame *fp,
1006 struct fc_frame_header *fh; 1006 struct fc_frame_header *fh;
1007 struct fc_ct_hdr *ct; 1007 struct fc_ct_hdr *ct;
1008 1008
1009 FC_LPORT_DBG(lport, "Received a RFT_ID %s\n", fc_els_resp_type(fp));
1010
1009 if (fp == ERR_PTR(-FC_EX_CLOSED)) 1011 if (fp == ERR_PTR(-FC_EX_CLOSED))
1010 return; 1012 return;
1011 1013
1012 mutex_lock(&lport->lp_mutex); 1014 mutex_lock(&lport->lp_mutex);
1013 1015
1014 FC_LPORT_DBG(lport, "Received a RFT_ID response\n");
1015
1016 if (lport->state != LPORT_ST_RFT_ID) { 1016 if (lport->state != LPORT_ST_RFT_ID) {
1017 FC_LPORT_DBG(lport, "Received a RFT_ID response, but in state " 1017 FC_LPORT_DBG(lport, "Received a RFT_ID response, but in state "
1018 "%s\n", fc_lport_state(lport)); 1018 "%s\n", fc_lport_state(lport));
@@ -1060,13 +1060,13 @@ static void fc_lport_rpn_id_resp(struct fc_seq *sp, struct fc_frame *fp,
1060 struct fc_frame_header *fh; 1060 struct fc_frame_header *fh;
1061 struct fc_ct_hdr *ct; 1061 struct fc_ct_hdr *ct;
1062 1062
1063 FC_LPORT_DBG(lport, "Received a RPN_ID %s\n", fc_els_resp_type(fp));
1064
1063 if (fp == ERR_PTR(-FC_EX_CLOSED)) 1065 if (fp == ERR_PTR(-FC_EX_CLOSED))
1064 return; 1066 return;
1065 1067
1066 mutex_lock(&lport->lp_mutex); 1068 mutex_lock(&lport->lp_mutex);
1067 1069
1068 FC_LPORT_DBG(lport, "Received a RPN_ID response\n");
1069
1070 if (lport->state != LPORT_ST_RPN_ID) { 1070 if (lport->state != LPORT_ST_RPN_ID) {
1071 FC_LPORT_DBG(lport, "Received a RPN_ID response, but in state " 1071 FC_LPORT_DBG(lport, "Received a RPN_ID response, but in state "
1072 "%s\n", fc_lport_state(lport)); 1072 "%s\n", fc_lport_state(lport));
@@ -1112,13 +1112,13 @@ static void fc_lport_scr_resp(struct fc_seq *sp, struct fc_frame *fp,
1112 struct fc_lport *lport = lp_arg; 1112 struct fc_lport *lport = lp_arg;
1113 u8 op; 1113 u8 op;
1114 1114
1115 FC_LPORT_DBG(lport, "Received a SCR %s\n", fc_els_resp_type(fp));
1116
1115 if (fp == ERR_PTR(-FC_EX_CLOSED)) 1117 if (fp == ERR_PTR(-FC_EX_CLOSED))
1116 return; 1118 return;
1117 1119
1118 mutex_lock(&lport->lp_mutex); 1120 mutex_lock(&lport->lp_mutex);
1119 1121
1120 FC_LPORT_DBG(lport, "Received a SCR response\n");
1121
1122 if (lport->state != LPORT_ST_SCR) { 1122 if (lport->state != LPORT_ST_SCR) {
1123 FC_LPORT_DBG(lport, "Received a SCR response, but in state " 1123 FC_LPORT_DBG(lport, "Received a SCR response, but in state "
1124 "%s\n", fc_lport_state(lport)); 1124 "%s\n", fc_lport_state(lport));
@@ -1333,13 +1333,13 @@ static void fc_lport_logo_resp(struct fc_seq *sp, struct fc_frame *fp,
1333 struct fc_lport *lport = lp_arg; 1333 struct fc_lport *lport = lp_arg;
1334 u8 op; 1334 u8 op;
1335 1335
1336 FC_LPORT_DBG(lport, "Received a LOGO %s\n", fc_els_resp_type(fp));
1337
1336 if (fp == ERR_PTR(-FC_EX_CLOSED)) 1338 if (fp == ERR_PTR(-FC_EX_CLOSED))
1337 return; 1339 return;
1338 1340
1339 mutex_lock(&lport->lp_mutex); 1341 mutex_lock(&lport->lp_mutex);
1340 1342
1341 FC_LPORT_DBG(lport, "Received a LOGO response\n");
1342
1343 if (lport->state != LPORT_ST_LOGO) { 1343 if (lport->state != LPORT_ST_LOGO) {
1344 FC_LPORT_DBG(lport, "Received a LOGO response, but in state " 1344 FC_LPORT_DBG(lport, "Received a LOGO response, but in state "
1345 "%s\n", fc_lport_state(lport)); 1345 "%s\n", fc_lport_state(lport));
@@ -1415,13 +1415,13 @@ static void fc_lport_flogi_resp(struct fc_seq *sp, struct fc_frame *fp,
1415 unsigned int e_d_tov; 1415 unsigned int e_d_tov;
1416 u16 mfs; 1416 u16 mfs;
1417 1417
1418 FC_LPORT_DBG(lport, "Received a FLOGI %s\n", fc_els_resp_type(fp));
1419
1418 if (fp == ERR_PTR(-FC_EX_CLOSED)) 1420 if (fp == ERR_PTR(-FC_EX_CLOSED))
1419 return; 1421 return;
1420 1422
1421 mutex_lock(&lport->lp_mutex); 1423 mutex_lock(&lport->lp_mutex);
1422 1424
1423 FC_LPORT_DBG(lport, "Received a FLOGI response\n");
1424
1425 if (lport->state != LPORT_ST_FLOGI) { 1425 if (lport->state != LPORT_ST_FLOGI) {
1426 FC_LPORT_DBG(lport, "Received a FLOGI response, but in state " 1426 FC_LPORT_DBG(lport, "Received a FLOGI response, but in state "
1427 "%s\n", fc_lport_state(lport)); 1427 "%s\n", fc_lport_state(lport));