aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/target/tcm_fc/tfc_sess.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/target/tcm_fc/tfc_sess.c')
-rw-r--r--drivers/target/tcm_fc/tfc_sess.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/target/tcm_fc/tfc_sess.c b/drivers/target/tcm_fc/tfc_sess.c
index b41bfbd820f..dbb5eaeee39 100644
--- a/drivers/target/tcm_fc/tfc_sess.c
+++ b/drivers/target/tcm_fc/tfc_sess.c
@@ -196,13 +196,13 @@ static struct ft_sess *ft_sess_get(struct fc_lport *lport, u32 port_id)
196 if (sess->port_id == port_id) { 196 if (sess->port_id == port_id) {
197 kref_get(&sess->kref); 197 kref_get(&sess->kref);
198 rcu_read_unlock(); 198 rcu_read_unlock();
199 FT_SESS_DBG("port_id %x found %p\n", port_id, sess); 199 pr_debug("port_id %x found %p\n", port_id, sess);
200 return sess; 200 return sess;
201 } 201 }
202 } 202 }
203out: 203out:
204 rcu_read_unlock(); 204 rcu_read_unlock();
205 FT_SESS_DBG("port_id %x not found\n", port_id); 205 pr_debug("port_id %x not found\n", port_id);
206 return NULL; 206 return NULL;
207} 207}
208 208
@@ -238,7 +238,7 @@ static struct ft_sess *ft_sess_create(struct ft_tport *tport, u32 port_id,
238 hlist_add_head_rcu(&sess->hash, head); 238 hlist_add_head_rcu(&sess->hash, head);
239 tport->sess_count++; 239 tport->sess_count++;
240 240
241 FT_SESS_DBG("port_id %x sess %p\n", port_id, sess); 241 pr_debug("port_id %x sess %p\n", port_id, sess);
242 242
243 transport_register_session(&tport->tpg->se_tpg, &acl->se_node_acl, 243 transport_register_session(&tport->tpg->se_tpg, &acl->se_node_acl,
244 sess->se_sess, sess); 244 sess->se_sess, sess);
@@ -312,7 +312,7 @@ int ft_sess_shutdown(struct se_session *se_sess)
312{ 312{
313 struct ft_sess *sess = se_sess->fabric_sess_ptr; 313 struct ft_sess *sess = se_sess->fabric_sess_ptr;
314 314
315 FT_SESS_DBG("port_id %x\n", sess->port_id); 315 pr_debug("port_id %x\n", sess->port_id);
316 return 1; 316 return 1;
317} 317}
318 318
@@ -333,7 +333,7 @@ void ft_sess_close(struct se_session *se_sess)
333 mutex_unlock(&ft_lport_lock); 333 mutex_unlock(&ft_lport_lock);
334 return; 334 return;
335 } 335 }
336 FT_SESS_DBG("port_id %x\n", port_id); 336 pr_debug("port_id %x\n", port_id);
337 ft_sess_unhash(sess); 337 ft_sess_unhash(sess);
338 mutex_unlock(&ft_lport_lock); 338 mutex_unlock(&ft_lport_lock);
339 transport_deregister_session_configfs(se_sess); 339 transport_deregister_session_configfs(se_sess);
@@ -346,7 +346,7 @@ void ft_sess_stop(struct se_session *se_sess, int sess_sleep, int conn_sleep)
346{ 346{
347 struct ft_sess *sess = se_sess->fabric_sess_ptr; 347 struct ft_sess *sess = se_sess->fabric_sess_ptr;
348 348
349 FT_SESS_DBG("port_id %x\n", sess->port_id); 349 pr_debug("port_id %x\n", sess->port_id);
350} 350}
351 351
352int ft_sess_logged_in(struct se_session *se_sess) 352int ft_sess_logged_in(struct se_session *se_sess)
@@ -456,7 +456,7 @@ static int ft_prli(struct fc_rport_priv *rdata, u32 spp_len,
456 mutex_lock(&ft_lport_lock); 456 mutex_lock(&ft_lport_lock);
457 ret = ft_prli_locked(rdata, spp_len, rspp, spp); 457 ret = ft_prli_locked(rdata, spp_len, rspp, spp);
458 mutex_unlock(&ft_lport_lock); 458 mutex_unlock(&ft_lport_lock);
459 FT_SESS_DBG("port_id %x flags %x ret %x\n", 459 pr_debug("port_id %x flags %x ret %x\n",
460 rdata->ids.port_id, rspp ? rspp->spp_flags : 0, ret); 460 rdata->ids.port_id, rspp ? rspp->spp_flags : 0, ret);
461 return ret; 461 return ret;
462} 462}
@@ -516,11 +516,11 @@ static void ft_recv(struct fc_lport *lport, struct fc_frame *fp)
516 struct ft_sess *sess; 516 struct ft_sess *sess;
517 u32 sid = fc_frame_sid(fp); 517 u32 sid = fc_frame_sid(fp);
518 518
519 FT_SESS_DBG("sid %x\n", sid); 519 pr_debug("sid %x\n", sid);
520 520
521 sess = ft_sess_get(lport, sid); 521 sess = ft_sess_get(lport, sid);
522 if (!sess) { 522 if (!sess) {
523 FT_SESS_DBG("sid %x sess lookup failed\n", sid); 523 pr_debug("sid %x sess lookup failed\n", sid);
524 /* TBD XXX - if FCP_CMND, send PRLO */ 524 /* TBD XXX - if FCP_CMND, send PRLO */
525 fc_frame_free(fp); 525 fc_frame_free(fp);
526 return; 526 return;